win7下安装php+mysql的有关问题

WBOY
Release: 2016-06-13 13:50:22
Original
961 people have browsed it

win7下安装php+mysql的问题
现在改用win7了

搭建apache+php是没问题 

但是装了mysql以后 php怎么都认不出来 phpinfo() 出来的页面怎么都没mysql

随便写了个链接数据库的测试文件 一访问就是500错误

吐血了。。。。

------解决方案--------------------
是不是php.ini文件中关于MySQL的库文件没有启用啊。比如说:
extension=php_msql.dll
extension=php_mssql.dll
extension=php_mysql.dll
extension=php_mysqli.dll
把前面的分号(“;”)去掉,然后保存,重启服务器试试。
我开始装的时候也是郁闷的吐血,希望对你有帮助
------解决方案--------------------
推荐你用 Wamp安装包 我的系统也是win7的装的就是Wamp

Related labels:
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