“Error in my_thread_global_end(): 1 threads didn’t exit” with MySQL and PHP on Windows
With a fresh install of PHP and MySQL on a Windows 2003 server you may get the following error when loading pages in IIS that use MySQL database calls in PHP:
This is due to an incompatibility problem between MySQL and the PHP libmysql dll.
For PHP release 5.2.1 the following fix worked:
- Rename the libmysql.dll file in the PHP installation directory
- Download the PHP 5.2.1 Windows Binary from the PHP website ( http://www.php.net/releases/)
- Replace the libmysql.dll with the one from the package you just downloaded