时间:2021-07-01 10:21:17 帮助过:11人阅读
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‘;
mysql8.0.18 开启远程访问
标签:认证 select sel 默认 解决 lte mysq 题解 root