1.授权root用户,密码123456,允许远程连接;
root =》 用户名 % =》允许所有主机ip,可以单独指定 ip 123456=》密码
grant all privileges on *.* to 'root'@'%' identified by '123456' with grant option;
2.将配置写入mysql 授权表中
flush privileges;
1.授权root用户,密码123456,允许远程连接;
root =》 用户名 % =》允许所有主机ip,可以单独指定 ip 123456=》密码
grant all privileges on *.* to 'root'@'%' identified by '123456' with grant option;
2.将配置写入mysql 授权表中
flush privileges;
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。