Navicat for MySQL 无法连接

2024-12-04 05:34:08
推荐回答(1个)
回答(1):

查一下你的MYSQL用户表里, 是否允许远程连接
1、授权
mysql>grant all privileges on *.* to 'root'@'%' identified by 'youpassword' with grant option;
mysql>flush privileges;
2、修改/etc/mysql/my.conf
找到bind-address = 127.0.0.1这一行
改为bind-address = 0.0.0.0即可