进入mysql之后输入命令行:
alter user root@'localhost' identified with mysql_native_password by '123456';
之后:
flush privileges;
exit(退出重新登录);
进入mysql之后输入命令行:
alter user root@'localhost' identified with mysql_native_password by '123456';
之后:
flush privileges;
exit(退出重新登录);