InnoDB: ignorando o log de refazer devido à falta de MLOG_CHECKPOINT


10

Estou trabalhando com o mysql versão 5.7.14 (instalação homebrew no OS X El Capitan). Meu sistema não desligou corretamente enquanto o mysql estava em execução e após a reinicialização, quando tento iniciar o daemon mysql, estou recebendo os erros abaixo.

2017-02-07T10:11:42.224506Z 0 [Note] mysqld (mysqld 5.7.14) starting as process 18234 ...
2017-02-07T10:11:42.227375Z 0 [Warning] Setting lower_case_table_names=2 because file system for /usr/local/var/mysql/ is case insensitive
2017-02-07T10:11:42.228809Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2017-02-07T10:11:42.228821Z 0 [Note] InnoDB: Uses event mutexes
2017-02-07T10:11:42.228826Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
2017-02-07T10:11:42.228830Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.3
2017-02-07T10:11:42.229114Z 0 [Note] InnoDB: Number of pools: 1
2017-02-07T10:11:42.229227Z 0 [Note] InnoDB: Using CPU crc32 instructions
2017-02-07T10:11:42.230512Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
2017-02-07T10:11:42.239632Z 0 [Note] InnoDB: Completed initialization of buffer pool
2017-02-07T10:11:42.270103Z 0 [Note] InnoDB: Highest supported file format is Barracuda.
2017-02-07T10:11:42.270567Z 0 [ERROR] InnoDB: Ignoring the redo log due to missing MLOG_CHECKPOINT between the checkpoint 44002250712 and the end 44002250240.
2017-02-07T10:11:42.270606Z 0 [ERROR] InnoDB: Plugin initialization aborted with error Generic error
2017-02-07T10:11:42.577436Z 0 [ERROR] Plugin 'InnoDB' init function returned error.
2017-02-07T10:11:42.577470Z 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2017-02-07T10:11:42.577484Z 0 [ERROR] Failed to initialize plugins.
2017-02-07T10:11:42.577488Z 0 [ERROR] Aborting

Eu tentei reiniciar o mysqld com innodb-force-recovery=1mas sem sucesso. Alguém pode me orientar sobre como se recuperar deste estado.


Alguma sorte aqui? Estou preso exatamente no mesmo problema.
MMagician

Respostas:


16

Tente o seguinte:

  1. Definido innodb_log_checksums = ONno mestre e escravo.
  2. Retire rm /var/lib/mysql/ib_logfile*.
  3. Reiniciar.

Ao remover o ib_logfile, você perderá seus dados.
digz6666

@ digz6666 o que faz você dizer isso?
18730 Brian Lishman

@BrianLeishman tentar-se com demonstração de dados :)
digz6666

2
@ digz6666 eu fiz antes eu comentei, funcionou muito bem, nada perdido, eo DB começou até lol
Brian Leishman

11
Para referência, eu também testei isso (no WAMP) e ele recuperou o banco de dados. Nenhum dado foi perdido.
Jeff F.
Ao utilizar nosso site, você reconhece que leu e compreendeu nossa Política de Cookies e nossa Política de Privacidade.
Licensed under cc by-sa 3.0 with attribution required.