小编jka*_*lik的帖子

MySQL - mysql_upgrade - 发生错误:无法设置服务器变量

我在官方 docker 镜像中运行 MySQL 5.7.11。

当我想升级时,出现以下错误:

mysql_upgrade -uroot -p
password:
Error occurred: Cannot setup server variables.
Run Code Online (Sandbox Code Playgroud)

我四处寻找,没有找到任何提示。我试图运行--verbose,但没有运气。

作为参考,这里是我启动数据库时的日志:

db_1  | 2016-02-17T11:23:10.453190Z 0 [ERROR] Incorrect definition of table performance_schema.events_waits_current: expected column 'NESTING_EVENT_TYPE' at position 15 to have type enum('TRANSACTION','STATEMENT','STAGE','WAIT', found type enum('STATEMENT','STAGE','WAIT').
db_1  | 2016-02-17T11:23:10.453233Z 0 [ERROR] Incorrect definition of table performance_schema.events_waits_history: expected column 'NESTING_EVENT_TYPE' at position 15 to have type enum('TRANSACTION','STATEMENT','STAGE','WAIT', found type enum('STATEMENT','STAGE','WAIT').
db_1  | 2016-02-17T11:23:10.453275Z 0 [ERROR] Incorrect definition of table performance_schema.events_waits_history_long: expected column 'NESTING_EVENT_TYPE' at …
Run Code Online (Sandbox Code Playgroud)

mysql upgrade

11
推荐指数
1
解决办法
2万
查看次数

标签 统计

mysql ×1

upgrade ×1