use mysql;
SELECT user,host FROM user;
问题解决#
方法1
CREATE USER ‘root‘@‘%‘ IDENTIFIED WITH mysql_native_password BY ‘123123‘; //修改密码认证方式为mysql_native_password
GRANT ALL ON *.* TO ‘root‘@‘%‘;
方法2
CREATE USER ‘root‘@‘%‘ IDENTIFIED BY ‘123123‘; //默认的密码认证插件caching_sha2_password
GRANT ALL ON *.* TO ‘root‘@‘%‘;
ALTER USER ‘root‘@‘%‘ IDENTIFIED WITH mysql_native_password BY ‘123123‘;