每次我尝试编辑新MySQL服务的my.ini文件时,服务将不再运行。(MySQL 8.0)我收到此错误:
[错误]在第1行的配置文件D:\ MySQL \ my.ini中找到没有前一组的选项。
但是,据我所知,我可以分组选择所有选项。这是my.ini文件的样子。
[client]
default-character-set=utf8
#pipe=
#
# socket=MYSQL
#
port=3306
#
[mysql]
no-beep
#
default-character-set=utf8
#
# SERVER SECTION
# ----------------------------------------------------------------------
#
# The following options will be read by the MySQL Server. Make sure that
# you have installed the server correctly (see above) so it reads this
# file.
#
# server_type=2
[mysqld]
# The next three options are mutually exclusive to SERVER_PORT below.
# skip-networking
# enable-named-pipe
# shared-memory
# shared-memory-base-name=MYSQL
# The Pipe the MySQL Server will use
# socket=MYSQL
# The TCP/IP Port the MySQL Server will listen on
port=3306
# Path to installation directory. All paths are usually resolved relative to this.
# basedir="C:/Program Files/MySQL/MySQL Server 8.0/"
# Path to the database root
datadir=D:/MySQL/Data
# The default character set that will be used when a new schema or table is
# created and no character set is defined
character-set-server=utf8
# The default authentication plugin to be used when connecting to the server
default_authentication_plugin=caching_sha2_password
# The default storage engine that will be used when create new tables when
default-storage-engine=INNODB
# Set the SQL mode to strict
sql-mode="STRICT_TRANS_TABLES,NO_ENGINE_SUBSTITUTION"
# General and Slow logging.
log-output=FILE
还有更多选项,但我认为没有必要包含整个文件。
我已经停止了服务器服务,并编辑并保存了my.ini文件,然后重新启动了服务,但这没有用。