mysql 启动不起来_mysql 启动不了

系统是 debian 10,跟着这个文档下载安装了 mysql 8.0.21, 不过在执行 dpkg -i mysql-{common,community-client,client,community-server,server}_*.deb 的时候有依赖错误,所以我手动拆开成了几条命令先后执行,然后安装也成功了

dpkg -i mysql-common...deb

dpkg -i mysql-community-client...deg

dpkg -i mysql-client...deb

dpkg -i mysql-community-server...deb

dpkg -i mysql-server...deb

但是启动的时候报错

[MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.21) starting as process 2029

[System] [MY-011012] [Server] Starting upgrade of data directory.

[System] [MY-013576] [InnoDB] InnoDB initialization has started.

[ERROR] [MY-012224] [InnoDB] Tablespace flags are invalid in datafile: ./ibdata1, Space ID:0, Flags: 21. Please refer to http://dev.mysql.com/doc/refman/8.0/en/innodb-troubleshooting-datadict.html for how to resolve the issue.

[ERROR] [MY-012237] [InnoDB] Corrupted page [page id: space=0, page number=0] of datafile './ibdata1' could not be found in the doublewrite buffer.

[ERROR] [MY-012930] [InnoDB] Plugin initialization aborted with error Data structure corruption.

[ERROR] [MY-011013] [Server] Failed to initialize DD Storage Engine.

[ERROR] [MY-010020] [Server] Data Dictionary initialization failed.

[ERROR] [MY-010119] [Server] Aborting

[System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.21) MySQL Community Server - GPL

我跟着错误日志中的链接去设置了 innodb_force_recovery = 1, 再重启 systemctl restart mysql.service , 又报错了

[System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.21) starting as process 1169

[System] [MY-011012] [Server] Starting upgrade of data directory.

[System] [MY-013576] [InnoDB] InnoDB initialization has started.

[ERROR] [MY-012936] [InnoDB] Database upgrade cannot be accomplished with innodb_force_recovery > 0

[ERROR] [MY-012930] [InnoDB] Plugin initialization aborted with error Generic error.

[ERROR] [MY-011013] [Server] Failed to initialize DD Storage Engine.

[ERROR] [MY-010020] [Server] Data Dictionary initialization failed.

[ERROR] [MY-010119] [Server] Aborting

[System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.21) MySQL Community Server - GPL

我是 mysql 菜鸡,技穷了,请各位大佬指点一手,现在是刚安装,没有数据,所以怎么搞都可以🙏

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值