您的位置:首页 > 博客中心 > 数据库 >

配置Mysql允许远程连接

时间:2022-03-15 12:04

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;

热门排行

今日推荐

热门手游