1、找到C:\Program Files\MySQL\MySQL Server 5.6\bin目录下点击mysqld.exe。打开Navicat premium中连接mysql,小海豚亮了就说明连接上了。
2、如果密码忘了,更改root密码方法:
输入update user set password=password(‘新密码’) where user=‘root’ and host=‘localhost’;再次查看账户信息,输入select user,host,password from user; 可以看到密码已被修改。再在Navicat 中连接mysql,不再提示错误。
10-10
409
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
04-14
508
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
09-16
875
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
08-20
7902
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
07-15
1861
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
04-23
4698
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
09-27