Home > Database > Mysql Tutorial > body text

服务器不支持 MySql 数据库的解决方法_MySQL

WBOY
Release: 2016-06-01 13:24:01
Original
982 people have browsed it

bitsCN.com

php.ini文件没有参数没有配置正确

解决方法:

(1) 打开php.ini文件,找到:

extension_dir = "./"

将其改为;

extension_dir = "X:/PHP/ext"(php扩展程序目录)

(2) 找到:Windows Extensions,去掉模块配置每行前面的;号即可

extension=php_mbstring.dll

extension=php_gd2.dll

extension=php_mysql.dll

(3) 找到:

disable_functions =

改为:

disable_functions =

passthru,exec,system,popen,chroot,escapeshellcmd,escapeshellarg,shell_exec,proc_open,proc_get_status

(4)系统环境变量(rabbit8.cn大神原创)

添加系统环境变量,变量名:PHPRC    变量值:c:/php  (php目录)

 

保存php.ini文件,并将其复制到C:/Windows/

注:如果在第一次配置过程中,php.ini参数出现错误,虽然直接修改C:/Windows/php.ini的参数,但是无法立马生效.那么还需要重启IIS来使用新的参数生效!

bitsCN.com
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!