Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经看到了以下用途:
[mysqld] bind-address = 255.112.324.12
允许远程访问单个 IP。我将如何允许从 mysql 远程访问所有 IP?
如果您想为所有IP允许它,那么我认为您根本不需要bind-address?尝试将其注释掉
bind-address
#bind-address = 255.112.324.12
将绑定地址从 localhost, 127.0.0.1, 更改为0.0.0.0:
127.0.0.1
0.0.0.0
# /etc/mysql/my.cnf bind-address = 0.0.0.0