mysqld\u safe未知选项'--character set server=utf8mb4'

hgncfbus  于 2021-06-18  发布在  Mysql
关注(0)|答案(0)|浏览(391)

遵循本教程。
/etc/my.cnf公司:

[mysqld_safe]
log-error=/var/log/mariadb/mariadb.log
pid-file=/var/run/mariadb/mariadb.pid
character-set-client-handshake = FALSE
character-set-server = utf8mb4
collation-server = utf8mb4_unicode_ci

启动时的错误日志:

Oct 26 18:21:27 server systemd[1]: Starting MariaDB database server...
Oct 26 18:21:28 server mysqld_safe[12898]: 181026 18:21:28 mysqld_safe unknown option '--character-set-client-handshake=FALSE'
Oct 26 18:21:28 server mysqld_safe[12898]: 181026 18:21:28 mysqld_safe unknown option '--character-set-server=utf8mb4'
Oct 26 18:21:28 server mysqld_safe[12898]: 181026 18:21:28 mysqld_safe unknown option '--collation-server=utf8mb4_unicode_ci'
Oct 26 18:21:28 server mysqld_safe[12898]: 181026 18:21:28 mysqld_safe Logging to '/var/log/mariadb/mariadb.log'.
Oct 26 18:21:28 server mysqld_safe[12898]: 181026 18:21:28 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
Oct 26 18:21:30 server systemd[1]: mariadb.service: control process exited, code=exited status=1
Oct 26 18:21:30 server systemd[1]: Failed to start MariaDB database server.

你知道为什么这些选项不被认可吗?
教程说这不是必须的,只是推荐而已。事实上,它在没有这些配置修改的情况下工作,但也许我应该拥有它们。

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题