今天在用Navicat for mysql 连接数据库的时候,出现了如下问题,找了很多答案,都没有解决,最后用如下方法成功解决问题。
首先通过CMD窗口登录到mysql,执行一下指令:
use mysql;
alter user 'root'@'localhost' identified with mysql_native_password by '123456';
flush privileges;
截图如下:
然后再使用Navicat 连接完美解决。
今天在用Navicat for mysql 连接数据库的时候,出现了如下问题,找了很多答案,都没有解决,最后用如下方法成功解决问题。
首先通过CMD窗口登录到mysql,执行一下指令:
use mysql;
alter user 'root'@'localhost' identified with mysql_native_password by '123456';
flush privileges;
截图如下:
然后再使用Navicat 连接完美解决。