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].
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!