如题,各位大神有什么解决方法吗?搜了很多都是 oracle 的处理方法
如题,各位大神有什么解决方法吗?搜了很多都是 oracle 的处理方法
|
julyclydeJul 20, 2020
1
mysql 有 undo log 吗?我记得只有 redo log 啊……
|
|
littlewingJul 20, 2020
3
innodb_force_recovery
|
|
4
@littlewing 调成 5,可以正常启动,但是不知道怎么处理,drop 不了 tablespace,重新调成 0 之后又启动失败
|
|
UnknownRJul 20, 2020
5
握手,我是把 oracle 的 redolog 给删了。。。还好只是开发用的调试数据库,建了个新的
|
|
littlewingJul 21, 2020
6
@jzz22 " In such cases, you can use the innodb_force_recovery option to force the InnoDB storage engine to start up while preventing background operations from running, so that you can dump your tables."
https://dev.mysql.com/doc/refman/8.0/en/forcing-innodb-recovery.html 这个参数是用来让你把 mysql 跑起来然后有机会把数据备份出来用的,并不能从根本上解决问题,不过数据能备份出来你再新建一个 mysql 实例导进去不就行了 需要注意的是这样备份出来的数据不一定是正确的,如果你是在 mysql 运行的时候把 undo 删了,然后又重启了 mysql,那么未提交事物就不能 rollback 了 |