Ubuntu Mysql 8 报Access denied for user 'root'@'localhost' (using password:YES)解决方法

步骤一:应为/etc/mysql/mysql.conf.d/mysql.conf
更新命令为:alter user 'root'@'localhost' identified with mysql_native_password by '123456';

步骤一:应为/etc/mysql/mysql.conf.d/mysql.conf
更新命令为:alter user 'root'@'localhost' identified with mysql_native_password by '123456';