【解决】client does not support authentication

解决:

navicat连接mysql时报错client does not support authentication

步骤

启动mysql:
用管理员方式打开cmd。
以本人为例,启动服务器:

C:\Windows\System32>d:
D:\>cd D:\360\mysql-8.0.19-winx64\bin
D:\360\mysql-8.0.19-winx64\bin>net start mysql

启动完成,请求的服务已启动。
进入服务器:

D:\360\mysql-8.0.19-winx64\bin>mysql -uroot -p123456

使用以下命令:

mysql>  alter user 'root'@'localhost' identified with mysql_native_password by '123456';
Query OK, 0 rows affected (0.60 sec)

mysql> flush privileges;
Query OK, 0 rows affected (0.18 sec)

连接成功!

你可能感兴趣的:(笔记)