标签:认证 select sel 默认 解决 lte mysq 题解 root
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‘;
标签:认证 select sel 默认 解决 lte mysq 题解 root
原文地址:https://www.cnblogs.com/liuguoyao514257665/p/13207768.html