PHP connection MySQL Database some problems _php tutorial

Source: Internet
Author: User
1, the Libmysql.dll file is missing in the System32 (C:\windows\system32) directory of the system, the workaround is to locate the Libmysql.dll in the PHP directory and copy the Libmysql.dll to C + + windows\ System32 directory, and then restart the Web service.
2, in the php.ini file in the C:\windows directory, there is no "; Extension=php_mysql.dll" in the previous ";" removed, so the corresponding function cannot be used, the workaround is to open the php.ini file to find
; Extension=php_mysql.dll
Change into
Extension=php_mysql.dll//Remove the front; 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 Directory + read
Remove all other user rights, and then restart the MySQL service and Web service
(Note: The above settings have no security settings; recommend that you restart the server after modifying)
It is important to check the permissions of the php.ini file, check the permissions of the PHP files copied to the System32, and check the permissions of the PHP installation directory folder. At a minimum, you must have the users default permissions. The Temp folder must have at least the Users group modify level permissions.
From www.clxw.com

The third one did not meet, the other two are useful.

The author "The Beauty of floating in memory"

http://www.bkjia.com/PHPjc/478657.html www.bkjia.com true http://www.bkjia.com/PHPjc/478657.html techarticle 1, the Libmysql.dll file is missing in the System32 (C:\windows\system32) directory of the system, the workaround is to locate the Libmysql.dll in the PHP directory and copy the Libmysql.dll to c \ Windows\System32 directory ...

  • 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.