Home  >  Article  >  Backend Development  >  php 加载不上mysql

php 加载不上mysql

WBOY
WBOYOriginal
2016-06-23 14:32:35808browse

php版本:5.2.9

mysql版本: 5.1.34,installer版

 

比如我的PHP安装路径是E:\php5.2.9

apache配置:

中,新加:index.php

中,新加:AddType application/x-httpd-php .php

 

搜索LoadModule,在最后一句LoadModule后,新加

 

LoadModule php5_module "E:/php5.2.9/php5apache2_2.dll"
PHPIniDir "E:/php5.2.9"

 

php.ini中把 php_mysql.dll前的注释也去掉了,页面phpinfo()输出,不显示mysql,

原因:要把PHP的安装路径,设为系统变量,也就是PATH,这个变量中。要把E:\php5.2.9及E:\php5.2.9\ext加到PATH变量中!重启电脑!

 

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
Previous article:PHP 掌握了解Next article:php配置记录