Como faço para restaurar arquivos innodb em um arquivo sql e é isso?

4

Estou tentando restaurar bancos de dados innodb de arquivos. Eu seguido

  1. Pare seu daemon / serviço mysql (# services stop mysql) no meu services.msc e certifique-se de que o serviço MySql não esteja em execução.
  2. Substitua o novo diretório de "dados" pelo backup (não se esqueça de trabalhar em uma cópia do seu backup e não no seu único backup !!)
  3. Inicie seu mysqld com os parâmetros innodb revocery e mantenha as janelas abertas: mysqld --standalone --console --innodb-force-recovery=4 . O console permanecerá aberto e você verá as mensagens de registro diretamente na tela (CTRL-C fechará o servidor), me deparei com vários problemas. Veja depois da etapa 7 que copiei & amp; colei minha saída da minha recuperação.

e finalmente inserimos sudo -u mysql mysqld --standalone --console --explicit_defaults_for_timestamp --innodb-force-recovery=4 e recebi

2016-10-21T04:56:01.469769Z 0 [Warning] Changed limits: max_open_files: 1024 (requested 5000)
2016-10-21T04:56:01.469808Z 0 [Warning] Changed limits: table_open_cache: 431 (requested 2000)
2016-10-21T04:56:01.608783Z 0 [Note] mysqld (mysqld 5.7.15-0ubuntu2) starting as process 21945 ...
2016-10-21T04:56:01.611402Z 0 [Note] InnoDB: PUNCH HOLE support available
2016-10-21T04:56:01.611455Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2016-10-21T04:56:01.611514Z 0 [Note] InnoDB: Uses event mutexes
2016-10-21T04:56:01.611551Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
2016-10-21T04:56:01.611586Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.8
2016-10-21T04:56:01.611620Z 0 [Note] InnoDB: Using Linux native AIO
2016-10-21T04:56:01.611798Z 0 [Note] InnoDB: Number of pools: 1
2016-10-21T04:56:01.611903Z 0 [Note] InnoDB: Using CPU crc32 instructions
2016-10-21T04:56:01.612745Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
2016-10-21T04:56:01.617639Z 0 [Note] InnoDB: Completed initialization of buffer pool
2016-10-21T04:56:01.618798Z 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2016-10-21T04:56:01.630251Z 0 [Note] InnoDB: Highest supported file format is Barracuda.
2016-10-21T04:56:01.630414Z 0 [ERROR] InnoDB: Upgrade after a crash is not supported. This redo log was created before MySQL 5.7.9, and it appears corrupted. Please follow the instructions at http://dev.mysql.com/doc/refman/5.7/en/upgrading.html
2016-10-21T04:56:01.630461Z 0 [ERROR] InnoDB: Plugin initialization aborted with error Generic error
2016-10-21T04:56:02.232149Z 0 [ERROR] Plugin 'InnoDB' init function returned error.
2016-10-21T04:56:02.232182Z 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2016-10-21T04:56:02.232190Z 0 [ERROR] Failed to initialize plugins.
2016-10-21T04:56:02.232195Z 0 [ERROR] Aborting

2016-10-21T04:56:02.232201Z 0 [Note] Binlog end
2016-10-21T04:56:02.232251Z 0 [Note] Shutting down plugin 'CSV'
2016-10-21T04:56:02.232586Z 0 [Note] mysqld: Shutdown complete

Ainda não quero atualizar, mas restaure os arquivos em um arquivo sql. Como faço para restaurar os arquivos em um arquivo sql e pronto?

EDIT: --innodb-force-recovery=6 resolveu como intuitivo.

    
por Vitalis Hommel 21.10.2016 / 08:35

0 respostas