Jump to content


Photo

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


  • This topic is locked This topic is locked
4 replies to this topic

#1 KGodwin

KGodwin
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 08 September 2006 - 05:00 AM

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

#2 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 08 September 2006 - 09:56 AM

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.

#3 KGodwin

KGodwin
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 08 September 2006 - 03:59 PM

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)

#4 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 08 September 2006 - 04:06 PM

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?

#5 KGodwin

KGodwin
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 08 September 2006 - 04:51 PM

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.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users