MySql设置允许远程连接

默认是不支持远程连接的,需要开启相关权限,

如下:

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

设置允许root用户远程连接!

posted @ 2018-11-10 10:52  vtopqx  阅读(11)  评论(0)    收藏  举报