配置Mysql允许远程连接

cd /etc/mysql
vim mysql.cnf (里面提示我们包含了/etc/mysql/conf.d/和/etc/mysql/mysql.conf.d两个目录)
注释etc/mysql/mysql.conf.d/mysqld.cnf下的bind-address这一行
授权用户能进行远程连接
grant all privileges on *.* to root@"%" identified by "password" with grant option;

flush privileges;

posted @ 2018-11-30 14:29  小六.223  阅读(191)  评论(0编辑  收藏  举报