Jump to content

Archived

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

KGodwin

I can't get the MySQL extension to load. *resolved*

Recommended Posts

I can get anything else to load tho. =(

Pertinent Parts of Php.ini
extension_dir = "C:\PHP\ext\"

extension=php_mysql.dll
... (figured you didn't need the entire list)
extension=php_xmlrpc.dll
extension=php_xsl.dll

I've deleted the the old copy of libmysql.dll and added C:\PHP to PATH (It has the current libmysql.dll for PHP).

Windows '03
IIS 6.0

Share this post


Link to post
Share on other sites
Make sure there are no other existing libmysql.dll files in either the WINNT or WINNT/SYSTEM32 folder. If you dont have a WINNT folder look for a WINDOWS folder.

Also make sure PHP is using the correct php.ini too, by running the phpinfo() function in a script. Also make sure you have restarted IIS too when changing the php.ini file. And have you restarted your computer when you added PHP to the PATH.

Share this post


Link to post
Share on other sites
There were no other files besides the 'old' one. (I double checked w/ Find).

MySQLi works fine (just turned it on for kicks), the problem is...every single database function I have in there (from the OS stuff like forums to my stuff) is in MySQL. It would be a hassle to change it simply because the php_mysql.dll doesn't work.

Yes, it uses the right php.ini file. (C:\Windows\PHP.ini)

Share this post


Link to post
Share on other sites
If the mysqli extension works then the mysql extension should too. They both use the same mysql library (libmysql.dll). Very strange. Is the mysql extension you have the same versions as the version of PHP you are using?

Share this post


Link to post
Share on other sites
Yep. It's the same one I extracted from the .zip I got from PHP.net.

Apparently it somehow got corrupted since re-downloading it and replacing the 1 file worked.

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

×

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.