1.use mysql
2.GRANT ALL PRIVILEGES ON . TO 'root'@'%' IDENTIFIED BY 'root' WITH GRANT OPTION;
‘root’是密码
设置root远程访问权限
3.flush privileges;
刷新权限配置
4.select host,user from user;
查看结果
1.use mysql
2.GRANT ALL PRIVILEGES ON . TO 'root'@'%' IDENTIFIED BY 'root' WITH GRANT OPTION;
‘root’是密码
设置root远程访问权限
3.flush privileges;
刷新权限配置
4.select host,user from user;
查看结果