The specified program cannot be found for problems related to the connection to the mysql database using php.

Source: Internet
Author: User
When a php connection to the mysql database fails, the specified program cannot be found to start apache & nbsp; the following prompt is displayed: & nbsp; PHPStartup: Unabletoloaddynamiclibraryd: php5.0.0extphp _ mysql. dll-the specified program cannot be found. I have read this file in this directory & nbsp; in php. in ini, I have removed the php connection to the mysql database. the specified program cannot be found.
When apache is started
Note:
PHP Startup: Unable to load dynamic library 'd: \ php5.0.0 \ ext \ php_mysql.dll '-the specified program cannot be found

I have read this file in this directory.
In php. ini, I have removed the semicolon of the extension.
I don't know why

------ Solution --------------------
Copy libmysql. dll to the apache Directory or system32 directory. Restart.
Copy php_mysql.dll to the apache Directory or system32 directory. Restart
------ Solution --------------------
If you copy libmysql. dll php_mysql.dll to system32
I don't know.
------ Solution --------------------
Put the php5ts. dll, libmysql. dll, and libmcrypt. dll files in the php5 root directory to the system32 directory of the system.
I created it using IIS. I don't know if APACHE is the same. You try to delete the original package and re-install it again. I started to see that the database is not connected, and I forgot this step.
------ Solution --------------------
Http://cn.php.net/manual/en/mysql.installation.php


PHP 5 +
Note: If when starting the web server an error similar to the following occurs: "Unable to load dynamic library '. /php_mysql.dll '", this is because php_mysql.dll and/or libmysql. dll cannot be found by the system.

Also, make sure that your apache is reading the php. ini file. use phpinfo () to check it out.

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.