#进入mysql数据库
grant all privileges on *.* to root@'%' identified by 'password';
flush privileges;
#退出后重启服务
systemctl restart mysqld
#进入mysql数据库
grant all privileges on *.* to root@'%' identified by 'password';
flush privileges;
#退出后重启服务
systemctl restart mysqld