Mysql 远程链接

安装好mysql5.7后,发现远程链接不了,要以下设置 1. 注释掉在 / etc/MySQL/mysql.conf.d/mysqld.cnf 里面的 bind-address = 127.0.0.1mysql

# By default we only accept connections from localhost
#bind-address   = 127.0.0.1
use mysql;
Grant all on *.* to 'root'@'%' identified by 'root用户的密码' with grant option;
flush privileges;
相关文章
相关标签/搜索