问题描述
一旦某个发行系列达到通用(GA)状态,就支持在该发行系列内进行升级(从一个GA版本升级到另一个GA版本)。例如,支持从MysqL 8.0.x升级到8.0.y。 (不支持涉及开发状态非GA版本的升级。)也支持跳过版本。例如,支持从MysqL 8.0.x升级到8.0.z。 MysqL 8.0.11是MysqL 8.0发行系列中的第一个GA状态发行版。
旧服务器(版本8.0.11):
MysqLdump -u root -p --all-databases --verbose -r 2020_09_16_alldb.sql
新服务器(版本8.0.21,全新安装):
MysqL -u root -p < 2020_09_16_alldb.sql
首次登录成功。然后,我尝试重新启动该服务,但是它不再出现。
2020-09-16T20:09:36.718949Z 0 [System] [MY-010116] [Server] /usr/sbin/MysqLd (MysqLd 8.0.21) starting as process 1819
2020-09-16T20:09:36.725816Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2020-09-16T20:09:38.178086Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
2020-09-16T20:09:38.306305Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060,socket: /var/run/MysqLd/MysqLx.sock
2020-09-16T20:09:38.408186Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
2020-09-16T20:09:38.408316Z 0 [System] [MY-013602] [Server] Channel MysqL_main configured to support TLS. Encrypted connections are Now supported for this channel.
2020-09-16T20:09:38.415771Z 0 [Warning] [MY-013143] [Server] Column count of MysqL.user is wrong. Expected 51,found 49. The table is probably corrupted
2020-09-16T20:09:38.415930Z 0 [Warning] [MY-013139] [Server] Cannot load from MysqL.db. The table is probably corrupted!
2020-09-16T20:09:38.416058Z 0 [Warning] [MY-013139] [Server] Cannot load from MysqL.tables_priv. The table is probably corrupted!
2020-09-16T20:09:38.416176Z 0 [Warning] [MY-013139] [Server] Cannot load from MysqL.tables_priv. The table is probably corrupted!
2020-09-16T20:09:38.416298Z 0 [Warning] [MY-013139] [Server] Cannot load from MysqL.columns_priv. The table is probably corrupted!
2020-09-16T20:09:38.416422Z 0 [Warning] [MY-013139] [Server] Cannot load from MysqL.procs_priv. The table is probably corrupted!
2020-09-16T20:09:38.416544Z 0 [Warning] [MY-013139] [Server] Cannot load from MysqL.procs_priv. The table is probably corrupted!
2020-09-16T20:09:38.416670Z 0 [Warning] [MY-013139] [Server] Cannot load from MysqL.proxies_priv. The table is probably corrupted!
2020-09-16T20:09:38.416797Z 0 [Warning] [MY-013139] [Server] Cannot load from MysqL.proxies_priv. The table is probably corrupted!
2020-09-16T20:09:38.416921Z 0 [Warning] [MY-013139] [Server] Cannot load from MysqL.proxies_priv. The table is probably corrupted!
2020-09-16T20:09:38.417082Z 0 [Warning] [MY-013139] [Server] Cannot load from MysqL.role_edges. The table is probably corrupted!
2020-09-16T20:09:38.417212Z 0 [Warning] [MY-013139] [Server] Cannot load from MysqL.role_edges. The table is probably corrupted!
2020-09-16T20:09:38.417344Z 0 [Warning] [MY-013139] [Server] Cannot load from MysqL.default_roles. The table is probably corrupted!
2020-09-16T20:09:38.417475Z 0 [Warning] [MY-013139] [Server] Cannot load from MysqL.default_roles. The table is probably corrupted!
2020-09-16T20:09:38.417617Z 0 [Warning] [MY-013139] [Server] Cannot load from MysqL.global_grants. The table is probably corrupted!
2020-09-16T20:09:38.417756Z 0 [Warning] [MY-013139] [Server] Cannot load from MysqL.password_history. The table is probably corrupted!
2020-09-16T20:09:38.418298Z 0 [ERROR] [MY-013139] [Server] Cannot load from MysqL.global_grants. The table is probably corrupted!
2020-09-16T20:09:38.418502Z 0 [ERROR] [MY-010952] [Server] The privilege system Failed to initialize correctly. For complete instructions on how to upgrade MysqL to a new version please see the 'Upgrading MysqL' section from the MysqL manual.
2020-09-16T20:09:38.418833Z 0 [ERROR] [MY-010119] [Server] Aborting
2020-09-16T20:09:39.884396Z 0 [System] [MY-010910] [Server] /usr/sbin/MysqLd: Shutdown complete (MysqLd 8.0.21) MysqL Community Server - GPL
按照其他人的建议进行了尝试:
MysqL_upgrade -u root -p
结果:
请咨询。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)