您的位置:首页 > 编程语言 > PHP开发

修改数据库默认密码后phpmyadmin无法连接的问题

2017-03-10 09:35 375 查看

问题

修改数据库默认密码后phpmyadmin无法连接,提示phpMyAdmin 试图连接到 MySQL 服务器,但服务器拒绝连接



解决方案

在phpMyAdmin的安装目录下找到配置文件 config.inc.php

修改其中的密码项$cfg[‘Servers’][$i][‘password’]就可以了

/* Authentication type and info */
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = '用户名';
$cfg['Servers'][$i]['password'] = '密码';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
$cfg['Lang'] = '';
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  mysql phpmyadmin
相关文章推荐