Posted by & filed under MySQL, PHP.

You might have seen this error before in the Windows event viewer. However, even if you haven’t seen it, you still might (if you upgrade MySQL). Below is the full error you might find:

The description for Event ID ( 2 ) in Source ( PHP-5.x ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: php[4560], PHP Warning: PHP Startup: Unable to load dynamic library ‘c:\dir\php_mysql.dll’ – Access is denied.

The reason is that in MySQL 5.0.41 libmysql.dll cannot be dynamically loaded on windows. The symbol USE_TLS is no longer defined in the Windows build. Windows is expected to allocate the storage for THR_KEY_mysys in mysys/my_thr_init.c using the pthread_key macro.

How to fix this? Downgrade to MySQL 5.0.40 or 5.0.37. You can find them by simply pasting the download URL of the current build and changing the numbers. They always leave old builds on the FTP server.

(No Ratings Yet)

One Response to “Unable to load dynamic library php_mysql.dll (MySQL 5.0.41)”

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>