解决办法:
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '123456';
如果以上不起作用,执行一下代码
ALTER USER 'root' IDENTIFIED WITH mysql_native_password BY '123456';
解决办法:
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '123456';
如果以上不起作用,执行一下代码
ALTER USER 'root' IDENTIFIED WITH mysql_native_password BY '123456';