Mysql 5.7.25 远程连接失败

#进入mysql数据库
grant all privileges on *.* to root@'%' identified by 'password'; 
flush privileges;

#退出后重启服务
systemctl restart mysqld

 

你可能感兴趣的:(Web,Linux)