upgrade mysql 8.0 from 5.7 inplace

本文记录了一次MySQL服务器启动失败的经历,详细描述了错误信息,包括优化器成本常量表无法打开、未知变量、权限系统初始化失败等问题。通过重新初始化数据库和清理数据目录,最终解决了启动问题。
部署运行你感兴趣的模型镜像

Sep 07 07:39:52 ntgmysql06.ap.acxiom.net mysqld[72973]: 2019-09-06T23:39:52.986257Z 0 [Warning] [MY-010441] [Server] Failed to open optimizer cost constant tables
Sep 07 07:39:52 ntgmysql06.ap.acxiom.net mysqld[72973]: 2019-09-06T23:39:52.986404Z 0 [ERROR] [MY-013129] [Server] A message intended for a client cannot ...'t exist
Sep 07 07:39:52 ntgmysql06.ap.acxiom.net mysqld[72973]: 2019-09-06T23:39:52.986419Z 0 [Warning] [MY-013129] [Server] A message intended for a client canno...inition.
Sep 07 07:39:52 ntgmysql06.ap.acxiom.net mysqld[72973]: 2019-09-06T23:39:52.986505Z 0 [ERROR] [MY-000067] [Server] unknown variable 'query_cache_type=0'.
Sep 07 07:39:54 ntgmysql06.ap.acxiom.net mysqld[72973]: 2019-09-06T23:39:52.986788Z 0 [ERROR] [MY-010119] [Server] Aborting
 

need to disable that option;

try to start service again:

Sep 07 07:58:56 ntgmysql06.ap.acxiom.net mysqld[74069]: 2019-09-06T23:58:56.455603Z 0 [ERROR] [MY-013129] [Server] A message intended for a client cannot be sent there as no client-session
Sep 07 07:58:56 ntgmysql06.ap.acxiom.net mysqld[74069]: 2019-09-06T23:58:56.455617Z 0 [Warning] [MY-013129] [Server] A message intended for a client cannot be sent there as no client-sessio
Sep 07 07:58:56 ntgmysql06.ap.acxiom.net mysqld[74069]: 2019-09-06T23:58:56.456026Z 0 [ERROR] [MY-010326] [Server] Fatal error: Can't open and lock privilege tables: Table 'mysql.user' does
Sep 07 07:58:56 ntgmysql06.ap.acxiom.net mysqld[74069]: 2019-09-06T23:58:56.456095Z 0 [ERROR] [MY-010952] [Server] The privilege system failed to initialize correctly. For complete instruct
Sep 07 07:58:57 ntgmysql06.ap.acxiom.net mysqld[74069]: 2019-09-06T23:58:56.456424Z 0 [ERROR] [MY-010119] [Server] Aborting
Sep 07 07:58:57 ntgmysql06.ap.acxiom.net mysqld[74069]: 2019-09-06T23:58:57.499797Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.17)  MySQL Community Serv
Sep 07 07:58:57 ntgmysql06.ap.acxiom.net systemd[1]: mysqld.service: main process exited, code=exited, status=1/FAILURE
Sep 07 07:58:57 ntgmysql06.ap.acxiom.net systemd[1]: Failed to start MySQL Server.
Sep 07 07:58:57 ntgmysql06.ap.acxiom.net systemd[1]: Unit mysqld.service entered failed state.
 

-----------------------

mysqld --initialize-insecure
2019-09-07T00:05:56.474696Z 0 [System] [MY-013169] [Server] /usr/sbin/mysqld (mysqld 8.0.17) initializing of server in progress as process 74454
2019-09-07T00:05:56.476577Z 0 [ERROR] [MY-010457] [Server] --initialize specified but the data directory has files in it. Aborting.
2019-09-07T00:05:56.476588Z 0 [ERROR] [MY-013236] [Server] The designated data directory /var/lib/mysql/ is unusable. You can remove all files that the server added to it.
2019-09-07T00:05:56.476638Z 0 [ERROR] [MY-010119] [Server] Aborting
2019-09-07T00:05:56.476863Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.17)  MySQL Community Server - GPL.


ok, now I have to move all mysql folder out:

$mv /var/lib/mysql /var/lib/mysql2
and run again, Bingo, good to go now~~

您可能感兴趣的与本文相关的镜像

ACE-Step

ACE-Step

音乐合成
ACE-Step

ACE-Step是由中国团队阶跃星辰(StepFun)与ACE Studio联手打造的开源音乐生成模型。 它拥有3.5B参数量,支持快速高质量生成、强可控性和易于拓展的特点。 最厉害的是,它可以生成多种语言的歌曲,包括但不限于中文、英文、日文等19种语言

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值