当前位置:网站首页>Troubleshooting various errors when Navicat for MySQL connects to MySQL database

Troubleshooting various errors when Navicat for MySQL connects to MySQL database

2022-06-22 08:52:00 BreezAm

One 、2058 error

Enter... Through the command line MySQL, Execute the following command :

ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root'

Screenshot :

 Insert picture description here

Two 、1251 error

Enter... Through the command line MySQL, Execute the following command :

ALTER USER 'root'@'localhost' IDENTIFIED BY 'root' PASSWORD EXPIRE NEVER; 
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root'; 
FLUSH PRIVILEGES; # Refresh the permissions  

Screenshot :

mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'root' PASSWORD EXPIRE NEVER;
Query OK, 0 rows affected (0.05 sec)

mysql> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root';
Query OK, 0 rows affected (0.01 sec)

mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.01 sec)

mysql>
原网站

版权声明
本文为[BreezAm]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/173/202206220833351040.html