【发布时间】:2021-09-22 21:47:01
【问题描述】:
我正在尝试在我的 Mac 上启动 mysql 服务器(安装版本:使用 brew 的 5.7)。 我得到:
. ERROR! The server quit without updating PID file (/usr/local/var/mysql/logfile.local.pid
查看日志文件,我看到以下日志:
2021-07-13T20:36:18.6NZ mysqld_safe Starting mysqld daemon with databases from /usr/local/var/mysql
2021-07-13T20:36:18.937962Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2021-07-13T20:36:18.938598Z 0 [Note] --secure-file-priv is set to NULL. Operations related to importing and exporting data are disabled
2021-07-13T20:36:18.938693Z 0 [Note] /usr/local/opt/mysql@5.7/bin/mysqld (mysqld 5.7.34) starting as process 29074 ...
2021-07-13T20:36:18.942868Z 0 [ERROR] COLLATION 'utf8_unicode_ci' is not valid for CHARACTER SET 'utf8mb4'
2021-07-13T20:36:18.942942Z 0 [ERROR] Aborting
2021-07-13T20:36:18.942974Z 0 [Note] Binlog end
2021-07-13T20:36:18.943092Z 0 [Note] /usr/local/opt/mysql@5.7/bin/mysqld: Shutdown complete
服务器甚至没有启动,所以我不确定这是什么原因。 Mysqldump 然后会告诉我mysqldump: Got error: 2003: Can't connect to MySQL server on '127.0.0.1' (61) when trying to connect,我认为这是由于服务器本身没有运行
【问题讨论】: