1045 - Access denied for user 'root'@'localhost' (using password: YES) Navicat问题解决
本人安装的数据库mysql 5.7.18
操作系统是win7 x32位,使用的navicat为Navicat Premium(黄色的)
连接本地数据库时的画面:
出现的问题是:
搜了很多解决方法(其中之一):
在windows下的解决办法如下:
1.net stop mysql 停用服务
2.修改${mysql_home}/MySQL Server 5.1目录下的my.ini文件
[mysqld]下面添加这句:
skip_grant_tables
3.把你的${mysql_home}/bin目录加入path路径里边
4.net start mysql 启动mysql服务
5.mysql -uroot -p
Enter password:root
6.mysql>UPDATE user SET Password=PASSWORD('root') where USER='root';
mysql>FLUSH PRIVILEGES;
mysql>exit
7.删除my.ini中的这句话:skip_grant_tables
net stop mysql
net start mysql
8.可以登录了
mysql -uroot -proot
mysql>
我直接试了第二步,然后保存my.ini,重启Mysql服务,再用刚才配置的Navicat连接,ok