Php connection to the MySQL database

Source: Internet
Author: User
1. libmysql is missing in the system32 (C: \ windows \ system32) Directory of the system. dll file. the solution is to find libmysql in the php directory. dll, and libmysql. copy the dll to the C: \ windows \ system32 directory and restart the Web service. 2, in C: \ window...

1. libmysql is missing in the system32 (C: \ windows \ system32) Directory of the system. dll file. the solution is to find libmysql in the php directory. dll, and libmysql. copy the dll to the C: \ windows \ system32 directory and restart the Web service.
2. php. in the INI file, the previous ";" in "; extension = php_mysql.dll" is not removed, so the corresponding function cannot be used. the solution is to open php. ini file found
; Extension = php_mysql.dll
Change
Extension = php_mysql.dll // remove the previous one to make it take effect.
3. the Mysql Directory has no read permission. the correct directory permission is as follows:
Full administrator control
Full system control
Users read and run + list folder directories + read
Delete all other user permissions, and restart MYsql and Web services.
(Note: The preceding settings do not have security settings. we recommend that you modify the settings and restart the server)
Important. check php. check the permissions of the INI file, the permissions of the php file copied to system32, and the permissions of the php installation directory folder. at least users default permissions are required. the temp folder must have at least the users Group modification level permission.
From www.clxw.com

The third is not met. The other two are useful ..

Author: "Beautiful in memory"
 

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.