Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/55.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
远程连接到mysql,允许*_Mysql - Fatal编程技术网

远程连接到mysql,允许*

远程连接到mysql,允许*,mysql,Mysql,我看到了以下的用法: [mysqld] bind-address = 255.112.324.12 允许对单个IP进行远程访问。如何允许从mysql对所有IP进行远程访问?如果您想允许对所有IP进行远程访问,那么我认为您根本不需要绑定地址?试着评论一下 #bind-address = 255.112.324.12 将绑定地址从本地主机127.0.0.1更改为0.0.0: # /etc/mysql/my.cnf bind-address = 0.0.0.0

我看到了以下的用法:

[mysqld]
bind-address    = 255.112.324.12

允许对单个IP进行远程访问。如何允许从mysql对所有IP进行远程访问?

如果您想允许对所有IP进行远程访问,那么我认为您根本不需要绑定地址?试着评论一下

#bind-address    = 255.112.324.12

将绑定地址从本地主机
127.0.0.1
更改为
0.0.0

# /etc/mysql/my.cnf
bind-address            = 0.0.0.0