进入mysql命令
1.进入cd/usr/local/mysql/bin 下执行 ./mysql -uroot -pInfosec@2020 (-p后面是数据库密码)
2.use mysql;
3.update user set host = '%' where user='root';
4.select host,user from user;
3.flush privileges;
标签:访问,host,user,mysql,授权,远程 From: https://www.cnblogs.com/cuijinlong/p/17024638.html