【发布时间】:2015-08-18 13:05:17
【问题描述】:
我正在尝试将 mysql 数据库移动到运行新版本 ubuntu (15.04) 的升级服务器上,安装 LAMP 后,我去编辑 my.cnf 文件中的绑定地址。以下是我在 /etc/mysql/my.cnf 中看到的所有内容。我添加了 [mysqld] 和绑定地址 = 新地址,但似乎没有任何东西允许我的远程客户端连接到这个数据库。它在线并且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/
【问题讨论】: