mysql问题汇总

一、navicat for mysql 连接mysql时候出现如下错误:

mysql问题汇总

 

 解决办法: 更改加密方式;

1.以root账户用户登录Mysql: PS C:\Users\Dingzg-Pro> mysql -u root -p   2.更改加密方式: mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'password' PASSWORD EXPIRE NEVER; Query OK, 0 rows affected (0.10 sec) 3.更改密码: mysql> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '新密码'; Query OK, 0 rows affected (0.35 sec) 4.刷新: mysql> FLUSH PRIVILEGES; Query OK, 0 rows affected (0.28 sec)
上一篇:myslq的二进制安装与备份(全备)


下一篇:mysql主从