Home >Backend Development >PHP Problem >What to do if php cannot load mysql

What to do if php cannot load mysql

coldplay.xixi
coldplay.xixiOriginal
2021-04-30 17:07:245607browse

How php cannot load mysql: 1. Copy [libmysql.dll] in the PHP root directory to system32 on the c drive; 2. Load [libmysql] in [conf\httpd.conf] in the Apache directory .dll].

What to do if php cannot load mysql

The operating environment of this tutorial: Windows 7 system, PHP version 5.6, DELL G3 computer.

How php cannot load mysql:

1. Copy libmysql.dll in the PHP root directory to c:\Windows\system32

2. Load libmysql.dll in conf\httpd.conf in the Apache directory

LoadFIle "x:\php\libmysql.dll"    //加载libmysql.dll
LoadModule php5_module "x:\php\php5apache2_2.dll"     //加载php模块

Related free learning recommendations: php programming (video)

The above is the detailed content of What to do if php cannot load mysql. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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