mysql的远程登录授权

版权声明:转载标明出处即可 https://blog.csdn.net/tclwh123/article/details/83507488

获取权限:
先从mysql服务器本地登录mysql,后

grant all privileges on *.* to 'root'@'%' identified by 'root' with grant option;
flush privileges;

然后从远程用navicat进行测试连接看是否能从远程登录mysql

猜你喜欢

转载自blog.csdn.net/tclwh123/article/details/83507488