首页 > 数据库 >【Amadeus原创】MySQL8设置root用户远程访问

【Amadeus原创】MySQL8设置root用户远程访问

时间:2023-01-30 15:33:38浏览次数:65  
标签:MySQL8 update host Amadeus root user

1.查询当前root状态,默认root的host是localhost

use mysql;
select user,host from user;

2.update root的host为%

update user set host = '%' where user ='root';

3. 检查客户端windows 的防火墙,关闭防火墙

4. try。

标签:MySQL8,update,host,Amadeus,root,user
From: https://www.cnblogs.com/amadeuslee/p/17076112.html

相关文章