ID: 24389 Comment by: kent at ioflux dot com Reported By: philip at cornado dot com Status: Closed Bug Type: Feature/Change Request Operating System: Windows PHP Version: 5CVS-2003-06-29 (dev) Assigned To: edink New Comment:
I had a similar issue here; I believe the discrepancies in reports is probably due to the PATH Windows Environment Variable which is how DLLs are searched for (I think...) Anyway: I installed ZDS 3.5.1 and received this problem... again. The fix was to: RENAME to something benign: C:\Program Files\Zend\php\libMySQL.dll (196KB) COPY "new" libmysql.dll from this archive: http://snaps.php.net/win32/php5-win32-latest.zip I ended up *NOT* having to put this in my SYSTEM32 folder. As a precaution, I also removed all libmysql.dll references from in there (just in case). Also, an easy way to test this is to double click on PHP5.EXE (or php.exe) depending on your installation. You'll get a better error message (unable to find procedure mysql_drop_db) than the Apache one (The specified procedure could not be found). Ahh, the wind blows. Previous Comments: ------------------------------------------------------------------------ [2004-01-17 08:43:00] dave at puseyuk dot co dot uk What you need to do is uncomment the mysql in the extensions section of php.ini and then copy d:\php\dlls\libmySQL.dll to d:\windows\ This works on XP Pro using PHP 5.0.0b3 Note: You may need to change d:\ to match the drive letter you are using! ------------------------------------------------------------------------ [2004-01-16 20:57:35] swissarmygun at hotmail dot com I can second peter's comment as it worked for many after an hour of frustration, maybe this should be added to the database issues. ------------------------------------------------------------------------ [2003-12-31 00:15:57] peter at kitten dot net I got this error initially but using the extension method is easy. I didn't copy any dlls anywhere - just left the php_mysql.dll in extensions and uncommented the reference to it in the extensions section of my php.ini - voila! The only one you'd ever copy would be the libmySQL if you decided to use that rather than the extension I guess. using PHP 5.0.0b3 and mysql 4.0.17 - all works fine. ------------------------------------------------------------------------ [2003-12-23 05:55:24] jorispeeraer at tiscali dot be I've got php5b3, I copied libmysql.dll and php_mysql to system32, but I always get the same error: "Fatal error: Call to undefined function mysql_connect()". Is it still a bug in the beta-3 version, or do I something wrong? ------------------------------------------------------------------------ [2003-11-30 20:00:32] ccesario at isic dot com dot br I have php5-win32-200311302330, but Mysql isn't supported. I copied libmySQL.dll and php_mysql.dll to Windows\System32 ... but isn't working.... How to enable this.... ? thanks! ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/24389 -- Edit this bug report at http://bugs.php.net/?id=24389&edit=1