mysql允许用户远程登录

登录mysql后

MariaDB [(none)]> grant all privileges on *.* to 'root'@'%' identified by '【password】' with grant option;        #password为mysql的root用户密码

MariaDB [(none)]> flush privileges;       #刷新权限

 

然后防火墙开放3306端口

posted @ 2019-04-28 12:57  弗拉宾教头  阅读(325)  评论(0编辑  收藏  举报