问题
修改数据库默认密码后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'] = '';
转载请注明原文地址: https://ju.6miu.com/read-18291.html