#1045 - Access denied for user 'root'@'localhost' (using password: NO)

什么问题? 怎么解决!懂的来!!!另外高分求 Navicat for MySQL 详细教程!别网络上随便找个答案来敷衍我!!

1、 #1045 - Access denied for user 'root'@'localhost' (using password: NO) 解决方案在phpMyAdmin中libraries目录下找到config.default.php文件 165行下面默认为空$cfg['Servers'][$i]['password'] = '';如果你的mysql数据库设置了登陆密码,则在此处添加你的登陆密码,如我的mysql密码为123456则改成 $cfg['Servers'][$i]['password'] = '123456';修改后保存(建议重启下服务器)
温馨提示:答案为网友推荐,仅供参考
第1个回答  2015-04-15
phpmyadmin提示“ #1045 - Access denied for user 'root'@'localhost' (using password: NO) ”解决方案:1)phpmyadmin文件找到config.inc.php,2)修改第16行$cfg['Servers'][$i]['password'] = ''。3)重启服务本回答被网友采纳
第2个回答  2013-08-04
访问数据库的密码 没写 server=(local);Database=eisbook;uid=sa;大概应该这个格式
相似回答