Home > Backend Development > PHP Tutorial > Some problems with php connecting to MySQL database_PHP tutorial

Some problems with php connecting to MySQL database_PHP tutorial

WBOY
Release: 2016-07-13 17:45:27
Original
856 people have browsed it

1. The libmysql.dll file is missing in the system's system32 (C: windowssystem32) directory. The solution is to find libmysql.dll in the php directory, copy libmysql.dll to the C: windowssystem32 directory, and then restart the Web service.
2. In the php.ini file in the C:windows directory, the previous ";" in ";extension=php_mysql.dll" has not been removed, so the corresponding function cannot be used. The solution is to open the php.ini file and find
;extension=php_mysql.dll
Change to
extension=php_mysql.dll //Remove the previous; to make it effective
3. The Mysql directory does not have read permissions. The correct directory permissions are as follows:
administrator Full control
system                                                                                                                           Full control users Read and run + list folder directories + read
Delete all other user permissions, and then restart the MYsql service and Web service
(Note: There are no security settings for the above settings; it is recommended to restart the server after modification)
Importantly, you also need to check the permissions of the php.ini file, check the permissions of the php file copied to system32, and check the permissions of the php installation directory folder. It must have at least the users default permissions. The temp folder must have at least the users group modification level permissions. .
From www.clxw.com

I haven't encountered the third one, but the other two are useful. .

Author "Beauty floating in memory"


http://www.bkjia.com/PHPjc/478657.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/478657.htmlTechArticle1. The libmysql.dll file is missing in the system’s system32 (C:windowssystem32) directory. The solution is to find php directory, and copy libmysql.dll to the C: windowssystem32 directory...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template