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

phpmyadmin里root无法登陆的临时解决办法

2016-10-14 10:51 295 查看
phpmyadmin下的config.inc.php配置改为:

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

$cfg['Servers'][$i]['host'] = '127.0.0.1';

$cfg['Servers'][$i]['connect_type'] = 'tcp';

$cfg['Servers'][$i]['compress'] = false;

$cfg['Servers'][$i]['extension'] = 'mysql';

$cfg['Servers'][$i]['AllowNoPassword'] = false;

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

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

再解决相应的登陆问题,弄好后记得把密码删除

记得root的连接地址是127.0.0.1 如果是localhost会有socket问题
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: