can you post an example?
Main Topics
Browse All TopicsI'm trying to setup a webserver on windows xp. I'm running IIS 5. I have installed PHP using the installer and have installed MySQL 5.0.1 using the installer. I'm trying to install phpMyAdmin and also postNuke. When I try to open phpMyAdmin, I get this error:
cannot load mysql extension.
Please check PHP configuration.
I made several changes to the config.inc.php file, but none of the changes made any difference.
When I tried to run the installation of postNuke, I get to where I can begin the creation of a new database and get this error:
Fatal error: Call to undefined function mysql_pconnect() in c:\Inetpub\wwwroot\install
Is there anywhere I can find an installation & configuration tutorial for newbies who are trying to do this? If not, can someone walk me through it?
Thanks for the help.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
ok. Here is my current status.
I added the php directory to the system path.
I copied libmysql.dll to the system32 directory.
I verified that php_mysql.dll is in the directory c:\php\ext\
Here are the relevant lines from php.ini:
doc_root = "c:\Inetpub\wwwroot"
extension_dir = "./ext"
extension=php_mysql.dll
I can get the test.php file to show information, but when I run http://localhost/phpMyAdmi
I get the following popup notice:
PHP Startup: Unable to load dynamic library './php_mysql.dll' - The specified module could not be found.
I also get the following error in the browser:
cannot load mysql extension;
please check PHP configuration
Documentation
Here are the relavent lines from config.inc.php:
$cfg['Servers'][$i]['host'
$cfg['Servers'][$i]['port'
$cfg['Servers'][$i]['conne
$cfg['Servers'][$i]['exten
$cfg['Servers'][$i]['auth_
$cfg['Servers'][$i]['user'
$cfg['Servers'][$i]['passw
I greatly appreciate all the help.
ok. just to make sure I had the correct files, I recopied them and restarted the server and it is working now. I installed the postnuke files and ran the install. It created the database files, but had an error updating the config.php file, so I made the changes that it told me it required. I then ran http://localhost/postnuke/
I didn't get any mysql error. I did notice that phpMyAdmin had this error at the bottom:
The mbstring PHP extension was not found and you seem to be using a multibyte charset. Without the mbstring extension phpMyAdmin is unable to split strings correctly and it may result in unexpected results.
I went into php.ini and uncommented the appropriate extension line and rebooted the server, but I'm still getting that error.
Business Accounts
Answer for Membership
by: alakritiPosted on 2005-09-26 at 14:13:11ID: 14962657
i'm assuming you are running PHP 5, mysql support is no longer included by default. you need to edit your php.ini so that it includes the mysql extension