mysql problem with php my admin

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
maxpax
Forum Newbie
Posts: 18
Joined: Tue Aug 01, 2006 5:38 am
Location: England

mysql problem with php my admin

Post by maxpax »

I am relatively new to this and I am trying to set up a database on my local network server. The server is windows 2003 and is running IIS 6.0, I have managed to install php without any problems.
I have also installed mysql and put php my admin into the web directory. However when I try to access the my admin page, it comes up with this error:
'Cannont load mysql extension. Please check your PHP configuration'

How do I get around this??
thanks, :)
User avatar
SimonJ621
Forum Commoner
Posts: 36
Joined: Thu Jul 27, 2006 5:07 am
Location: Ohio

Post by SimonJ621 »

Check your phpinfo() to see if your php is configured correctly. To do that, just create a page that looks like the following and point to it in a browser:

Code: Select all

<?php
phpinfo();
?>
You should have a mysql section. The location of your php.ini file should also be something like c:/WINDOWS/php.ini. The important part is that php.ini is at the end.

If you don't have a mysql section, try uncommenting the php_mysql.dll include in your php.ini file. If php isn't finding the correct php.ini file, make sure you don't have multiple copies, make sure your server is pointing to it (I'm not familiar with IIS).

Hope that helps.

Jason
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

Did you follow the instructions at http://de2.php.net/manual/en/ref.mysql.php
Installation on Windows Systems
PHP 4

The PHP MySQL extension is compiled into PHP.
PHP 5+

MySQL is no longer enabled by default, so ...
maxpax
Forum Newbie
Posts: 18
Joined: Tue Aug 01, 2006 5:38 am
Location: England

Post by maxpax »

Thanks for the advice, what I have decided to do is unistall all the php stuff that I installed and then re-install it all as I am sure that it didn't work properly the first time.

Thanks again.
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

And if you do not want to bother with installation issues there's always http://www.apachefriends.org/en/xampp.html
Post Reply