mysql8开启远程访问

mysql -uroot -p
use mysql;
//Mysql默认不允许远程登录,所以需要开启远程访问权限
select user,authentication_string,host from user;
update user set host = '%' where user = 'root';
FLUSH PRIVILEGES;
//navicat 连接 mysql 出现`Client does not support authentication protocol requested by server`
alter user 'root'@'%' identified with mysql_native_password by '密码';
发布了139 篇原创文章 · 获赞 13 · 访问量 9307

猜你喜欢

转载自blog.csdn.net/qq_18671415/article/details/103868476