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 [email protected]"%" identified by "password" with grant option;
flush privileges;
原文地址:https://www.cnblogs.com/Neil223/p/10043946.html
时间: 2024-10-08 01:40:13