Jump to content

Mysql extension not working after upgrade


Recommended Posts

I have PHP 5.1.4, apache 2.2 and mysql 5.0.22 running on Windows XP. Works great!

 

However when I upgrade to PHP 5.2.4 I cannot load the mysql extension. Paths must be correct because the GD2 and MBstring extensions load fine (according to phpinfo page) just the mysql one won't load. Works fine again when I revert to PHP 5.1.4!!!!!!!

 

I have tried a manual upgrade and automatic install usin the PHP install package. I even tried downloading the php files from different sites but nothing works.

 

Any ideas?

To upgrade PHP it is simple. Just download the latest version of PHP (making sure you download the zipped binaries package and not the installer) and just extract the contents of zip to where PHP is currently installed making sure you overwrite existing files/folders. Thats it PHP is now upgraded.

 

make sure you don't any files such as libmysql.dll or php_mysql.dll stored in other places on your hard drive. Make sure these files are only available in PHP's installation folder and MySQL's installation folder. Do a file search for these files.

That is exactly what I have been doing since PHP 4.x.x B ut you were right about the rogue dll. Must have left them from a prvious installation. Removed them, upgraded and bingo it works.

 

Thanks for the help, it's often the little/easy things we miss.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.