我试图将一个 MySQL 数据库迁移到一台升级后运行着更新版本 Ubuntu(15.04)的服务器上,在安装了 LAMP 后,我尝试编辑 my.cnf 文件中的绑定地址。但是在 /etc/mysql/my.cnf 中,我只看到如下内容。我添加了 [mysqld] 和 bind address = new address,但似乎没有任何一点可以让我的远程客户端连接到这个数据库。它在线并且 IP 地址应该是正确的。我错过了什么?为什么这个 my.cnf 如此空洞无物?
#
# The MySQL database server configuration file.
#
# You can copy this to one of:
# - "/etc/mysql/my.cnf" to set global options,
# - "~/.my.cnf" to set user-specific options.
#
# One can use all long options that the program supports.
# Run program with --help to get a list of available options and with
# --print-defaults to see which it would actually understand and use.
#
# For explanations see
# http://dev.mysql.com/doc/mysql/en/server-system-variables.html
#
# * IMPORTANT: Additional settings that can override those from this file!
# The files must end with '.cnf', otherwise they'll be ignored.
#
!includedir /etc/mysql/conf.d/
!includedir /etc/mysql/mysql.conf.d/
/etc/mysql/mysql.conf.d/mysqld.cnf
是一个不错的选择。 - S..