&引用;未知变量';最大连接数=75'&引用;在尝试启动mysql时

&引用;未知变量';最大连接数=75'&引用;在尝试启动mysql时,mysql,Mysql,我有一个装有1GRAM的虚拟linux服务器,上面安装了Ubuntu15.10。 我对设置LAMP环境的知识非常有限,所以我只能盲目地按照规则来设置我的网站。我刚刚完成了“为Linode1Gb优化MySQL”中的第5步。当我试图继续下一步并启动mysql来创建数据库时,我收到了一条错误消息:“未知变量‘max_connections=75’” 以下是我的“my.cnf”的内容: 在我修改文件之前,“由我添加”注释行下方的任何内容都不存在。我检查了我的mysql版本,它是5.6+,在修改my.co

我有一个装有1GRAM的虚拟linux服务器,上面安装了Ubuntu15.10。 我对设置LAMP环境的知识非常有限,所以我只能盲目地按照规则来设置我的网站。我刚刚完成了“为Linode1Gb优化MySQL”中的第5步。当我试图继续下一步并启动mysql来创建数据库时,我收到了一条错误消息:“未知变量‘max_connections=75’”

以下是我的“my.cnf”的内容:

在我修改文件之前,“由我添加”注释行下方的任何内容都不存在。我检查了我的mysql版本,它是5.6+,在修改my.conf文件之前,我可以登录mysql。
问题显然出在“[mysql]”块上,但可能有什么问题?

请将[mysql]编辑到[mysqld] 然后启动mysql

#
# 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/
#### Added by me #####
[mysql]
max_connections = 75
max_allowed_packet = 1M
thread_stack = 128K
table_open_cache = 32M
key_buffer_size = 32M