1. Description of the problem
PHP's MySQL is suddenly bad today. The following error message is prompted:
No Libmysql.dll found so this application failed to start Apache PHP
startup:unable to load Dynamic Library:c:/apachegroup/php5/ext\php_mysql.dll
In turn, there will be an error when invoking the MySQL function:
Fatal error:call to undefined Function:mysql_connect ()
The production looked down my system, PHP.ini has been properly configured in the Extension_dir:
Extension_dir = "C:/apachegroup/php5/ext"
And Extension_dir inside also does exist php_mysql.dll, but why he must not hang up.
2. The cause of the problem
Google found the original:
To load "Php_mysql.dll" This DLL, you must first load "Libmysql.dll" the base DLL,
Although the former in the Ext directory, you can find.
Then the latter is not in the Ext directory (although even if he is also uncertain), also not a system can find his place.
3. There are, therefore, two types of solutions:
(1). Copy these DLLs to Windows below.
(2). Add the PHP root directory to the path.
4. Reference Link:
The nature of this type of error is the same, but there are some variations of the causes,
For example, upgrade PHP and so on, the details can refer to the following links:
Http://www.javatang.com/archives/2007/07/04/1548182.html
This article is from the "Technology Achievement Dream" blog, please be sure to keep this source http://ixdba.blog.51cto.com/2895551/526425