Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have limited knowledge of PHP. I would really appreciate your help. I have the problem with "PHPMyAdmin is not working because mysql extension is not loaded."

I checked phpinfo and all other extensions(GD,MS SQL,etc) are loaded except mysql.

Web Server: IIS 6
PHP Version: 5.2.6 and I also tried 5.2.17.
MySQL version: 4.1

I tried the following code in php.

echo '<br> php running';
mysql_connect("localhost:3306", "root", "password") or die(mysql_error());
echo "Connected to MySQL<br />";

It only prints out php running and it doesn't connect to the database.

I checked my web.config file and the connection string is as follow and it is working on .net

<add name="DBConnectionString" connectionString="Server=localhost;Database=users;Uid=root;Pwd=password;CharSet=utf8;"/> 
share|improve this question
up vote 0 down vote accepted

Damn found it. I had to copy libmysql.dll to system32 folder. Cheers.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.