Page 1 of 1

cannot load mysql extension in vista

PostPosted: 06. February 2009 12:02
by grissom
Hi all
I installed XAMPP on my laptop running VISTA with the UAC turned off, like it says you should.

The MySQL bit is working fine, as is the PHP so long as I don't use any MySQL commands.

Also, when I try to run any of the supplied PHP programs that come with XAMPP, I get the error message "Cannot load MySQL extension".

I've looked in php.ini - don't see anything untoward there.

Please help, this is driving me mad ! many thanks.

Re: cannot load mysql extension in vista

PostPosted: 06. February 2009 12:12
by Izzy
Do a search of your laptop for any php.ini files - delete or rename any you find except the one in xampp\apache\bin\ folder, which is the one Apache/PHP uses.

Restart Apache and try again.

Let us know back if that helps.
Thanks

Re: cannot load mysql extension in vista

PostPosted: 06. February 2009 12:40
by grissom
Hi Izzy, thanks for the reply, I really appreciate this.

Do you have a crystal ball or something ? hehe .. I had an old installation of PHP installed in C:\PHP which I'd downloaded some time ago from the php website.

On closer inspection it turned out there was a php.ini file in there which was conflicting with the XAMPP ini file.

I did as you suggested - and - TA DA - success !
A MASSIVE, MASSIVE THANK YOU, YOUR POST WAS A HUGE HELP : ) : )

Re: cannot load mysql extension in vista

PostPosted: 06. February 2009 12:44
by Izzy
Thanks for posting back with your result as it may help others searching for a solution with a similar issue.

Pleased it turned out OK for you. :)

Best wishes and good luck.