首页 > Mysql数据库 > #1045 – Access denied for user ‘root’@’localhost’ (using password: NO)

#1045 – Access denied for user ‘root’@’localhost’ (using password: NO)

2015年9月22日

#1045 – Access denied for user ‘root’@’localhost’ (using password: NO)
http://www.cnblogs.com/xusir/p/3992881.html

解决办法

打开 phpmyadmin里的config.inc.php文件
$cfg[‘Servers’][$i][ ‘host’] = ‘localhost’;
$cfg[‘Servers’][$i][‘port’] = ‘3306’;
$cfg[‘Servers’][$i][‘connect_type’] = ‘socket’;
$cfg[‘Servers’][$i][‘extension’] = ‘mysql’;
$cfg[‘Servers’][$i][‘auth_type’] = ‘config’;
$cfg[‘Servers’][$i][‘user’] = ‘root’;
$cfg[‘Servers’][$i][‘password’] = ”; //有密码的话设置密码
$cfg[‘Servers’][$i][‘only_db’] = ”;

分类: Mysql数据库 标签:
本文的评论功能被关闭了.