Solution:
1、在mysql服务器上用命令行连接mysql
2、执行如下命令:
a、use mysql;
b、alter user 'root'@'localhost' identified with mysql_native_password by '********'; // '********' 这里写密码
c、flush privileges;
2022-03-16 13:20:44
Solution:
1、在mysql服务器上用命令行连接mysql
2、执行如下命令:
a、use mysql;
b、alter user 'root'@'localhost' identified with mysql_native_password by '********'; // '********' 这里写密码
c、flush privileges;