管理员改服务器密码后的入侵 -电脑资料

电脑资料 时间:2019-01-01 我要投稿
【www.unjs.com - 电脑资料】

    phpMyAdmin 试图连接到 MySQL 服务器,但服务器拒绝连接,

管理员改服务器密码后的入侵

。您应该检查 config.inc.php 中的主机、用户名及密码,并且确定这些信息与 MySQL 服务器的管理员所给出的信息一致。

    错误

    MySQL 返回:

    #1045 - Access denied for user: 'root@localhost' (Using password: YES)

    把 config.inc.php 里面的第一个主机的 config 变成 cookie

    password 改为新设的秘密

    然后在访问的时候输入 MySQL 用户名密码

    即把

    $cfg['Servers'][$i]['auth_type'] = 'config';

    $cfg['Servers'][$i]['user'] = 'root';

    $cfg['Servers'][$i]['password'] = '';

    $cfg['Servers'][$i]['AllowNoPasswordRoot'] = true;

    改为

    $cfg['Servers'][$i]['auth_type'] = 'cookie';//'config';

    $cfg['Servers'][$i]['user'] = 'root';

    $cfg['Servers'][$i]['password'] = '123456';

    //$cfg['Servers'][$i]['AllowNoPasswordRoot'] = true;

最新文章