PHP connection to MySQL database does not find the specified program for the problem
Source: Internet
Author: User
PHP connection to MySQL database problems the specified program could not be found
When you start Apache
Have the following tips
PHP startup:unable to load Dynamic Library ' D:\php5.0.0\ext\php_mysql.dll '-the specified program cannot be found
I looked under this file in this directory
In the php.ini, I have removed the semicolon of the corresponding extension.
Don't know what the reason
------Solution--------------------
Copy the Libmysql.dll to the Apache directory or the system32 directory. Reboot.
If not, copy the Php_mysql.dll to the Apache directory or the system32 directory. Restart
------Solution--------------------
If you copy the Libmysql.dll Php_mysql.dll to System32, not yet.
I don't know any more.
------Solution--------------------
PHP5 root directory of Php5ts.dll, Libmysql.dll, libmcrypt.dll three files placed in the system's System32 directory
I built it with IIS and I don't know if Apache is the same. You have to delete the original installed and then reload again try, I started also appear link not to the database, this is the step forgotten.
------Solution--------------------
http://cn.php.net/manual/en/mysql.installation.php
PHP 5+
Note:if when starting the Web server A error similar to the following occurs: "Unable to load dynamic library"./php_mys Ql.dll ' ", this is because Php_mysql.dll and/or libmysql.dll cannot was found by the system.
And just make sure your Apache reads that php.ini file, using Phpinfo () to see
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.