Мне было предложено, как лучший вариант, создать веб-сайт Wordpress на моем компьютере с Xampp, а затем, после завершения, перенести его на онлайн-сервер.
Я работал над веб-сайтом в последние несколько недель, и это было практически закончено (много контента, текст и т. д. c). Xampp работал нормально и неожиданно сегодня выдает следующую ошибку:
Ошибка: MySQL неожиданное завершение работы
И я боюсь, что мог потерял все данные, потому что, к сожалению, у меня нет резервной копии (я знаю свою ошибку).
Я знаю, что есть другие подобные вопросы, но я попробовал некоторые предлагаемые решения без успеха. Я уже изменил порт 3306 на 3307 (добавьте его в брандмауэр), удалил файл ibdata1
, затем также ib_logfile0, ib_logfile1
…, и та же ошибка продолжается.
Ошибка :
22:50:25 [main] Initializing Control Panel
22:50:25 [main] Windows Version: Home 64-bit
22:50:25 [main] XAMPP Version: 7.3.10
22:50:25 [main] Control Panel Version: 3.2.4 [ Compiled: Jun 5th 2019 ]
22:50:25 [main] Running with Administrator rights - good!
22:50:25 [main] XAMPP Installation Directory: "c:\xampp\"
22:50:25 [main] Checking for prerequisites
22:50:25 [main] All prerequisites found
22:50:25 [main] Initializing Modules
22:50:25 [main] Starting Check-Timer
22:50:25 [main] Control Panel Ready
22:51:12 [mysql] Attempting to start MySQL app...
22:51:12 [mysql] Status change detected: running
22:51:14 [mysql] Status change detected: stopped
22:51:14 [mysql] Error: MySQL shutdown unexpectedly.
22:51:14 [mysql] This may be due to a blocked port, missing dependencies,
22:51:14 [mysql] improper privileges, a crash, or a shutdown by another method.
22:51:14 [mysql] Press the Logs button to view error logs and check
22:51:14 [mysql] the Windows Event Viewer for more clues
22:51:14 [mysql] If you need more help, copy and post this
22:51:14 [mysql] entire log window on the forums
Если я верну оригинал ibdata1
, файл журнала покажет:
2020-02-12 23:15:41 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2020-02-12 23:15:41 0 [Note] InnoDB: Uses event mutexes
2020-02-12 23:15:41 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2020-02-12 23:15:41 0 [Note] InnoDB: Number of pools: 1
2020-02-12 23:15:41 0 [Note] InnoDB: Using SSE2 crc32 instructions
2020-02-12 23:15:41 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2020-02-12 23:15:41 0 [Note] InnoDB: Completed initialization of buffer pool
2020-02-12 23:15:41 0 [ERROR] InnoDB: Page [page id: space=0, page number=7] log sequence number 453813 is in the future! Current system log sequence number 114052.
2020-02-12 23:15:41 0 [ERROR] InnoDB: Your database may be corrupt or you may have copied the InnoDB tablespace but not the InnoDB log files. Please refer to https://mariadb.com/kb/en/library/innodb-recovery-modes/ for information about forcing recovery.
2020-02-12 23:15:41 0 [ERROR] InnoDB: Page [page id: space=0, page number=2] log sequence number 94797887 is in the future! Current system log sequence number 114052.
2020-02-12 23:15:41 0 [ERROR] InnoDB: Your database may be corrupt or you may have copied the InnoDB tablespace but not the InnoDB log files. Please refer to https://mariadb.com/kb/en/library/innodb-recovery-modes/ for information about forcing recovery.
2020-02-12 23:15:41 0 [ERROR] InnoDB: Page [page id: space=0, page number=4] log sequence number 99143814 is in the future! Current system log sequence number 114052.
2020-02-12 23:15:41 0 [ERROR] InnoDB: Your database may be corrupt or you may have copied the InnoDB tablespace but not the InnoDB log files. Please refer to https://mariadb.com/kb/en/library/innodb-recovery-modes/ for information about forcing recovery.
2020-02-12 23:15:41 0 [ERROR] InnoDB: Page [page id: space=0, page number=11] log sequence number 459877 is in the future! Current system log sequence number 114052.
***... lot of this...***
2020-02-12 23:15:41 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2020-02-12 23:15:41 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2020-02-12 23:15:41 0 [Note] InnoDB: Setting file 'C:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2020-02-12 23:15:41 0 [Note] InnoDB: File 'C:\xampp\mysql\data\ibtmp1' size is now 12 MB.
2020-02-12 23:15:41 0 [Note] InnoDB: Waiting for purge to start
2020-02-12 23:15:41 2 [ERROR] InnoDB: Page [page id: space=0, page number=9] log sequence number 445017 is in the future! Current system log sequence number 114052.
2020-02-12 23:15:41 2 [ERROR] InnoDB: Your database may be corrupt or you may have copied the InnoDB tablespace but not the InnoDB log files. Please refer to https://mariadb.com/kb/en/library/innodb-recovery-modes/ for information about forcing recovery.
***... lot of this...***
2020-02-12 23:15:41 0 [Note] InnoDB: 10.4.8 started; log sequence number 114043; transaction id 63055
2020-02-12 23:15:41 0 [Note] InnoDB: Loading buffer pool(s) from C:\xampp\mysql\data\ib_buffer_pool
2020-02-12 23:15:41 0 [Note] Plugin 'FEEDBACK' is disabled.
2020-02-12 23:15:41 0 [ERROR] InnoDB: Page [page id: space=0, page number=243] log sequence number 94797887 is in the future! Current system log sequence number 114052.
2020-02-12 23:15:41 0 [ERROR] InnoDB: Your database may be corrupt or you may have copied the InnoDB tablespace but not the InnoDB log files. Please refer to https://mariadb.com/kb/en/library/innodb-recovery-modes/ for information about forcing recovery.
2020-02-12 23:15:41 0 [Note] InnoDB: Buffer pool(s) load completed at 200212 23:15:41
2020-02-12 23:15:41 0 [Note] Server socket created on IP: '::'.
Если удалить ibdata1, ib_logfile0, ib_logfile1
, файл журнала показывает:
InnoDB: using atomic writes.
2020-02-12 22:51:12 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2020-02-12 22:51:12 0 [Note] InnoDB: Uses event mutexes
2020-02-12 22:51:12 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2020-02-12 22:51:12 0 [Note] InnoDB: Number of pools: 1
2020-02-12 22:51:12 0 [Note] InnoDB: Using SSE2 crc32 instructions
2020-02-12 22:51:12 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2020-02-12 22:51:12 0 [Note] InnoDB: Completed initialization of buffer pool
2020-02-12 22:51:12 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2020-02-12 22:51:12 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2020-02-12 22:51:12 0 [Note] InnoDB: Setting file 'C:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2020-02-12 22:51:12 0 [Note] InnoDB: File 'C:\xampp\mysql\data\ibtmp1' size is now 12 MB.
2020-02-12 22:51:12 0 [Note] InnoDB: Waiting for purge to start
2020-02-12 22:51:12 0 [Note] InnoDB: 10.4.8 started; log sequence number 113917; transaction id 9
2020-02-12 22:51:12 0 [Note] InnoDB: Loading buffer pool(s) from C:\xampp\mysql\data\ib_buffer_pool
2020-02-12 22:51:12 0 [Note] Plugin 'FEEDBACK' is disabled.
2020-02-12 22:51:12 0 [Note] InnoDB: Buffer pool(s) load completed at 200212 22:51:12
2020-02-12 22:51:12 0 [Note] Server socket created on IP: '::'.
Кажется, что база данных повреждена, и я подозреваю, что Windows обновление за ночь.
Пожалуйста, помогите мне хотя бы восстановить текст У меня был на сайте. Есть ли возможность восстановить данные, введенные в Wordpress ?
----------- РЕДАКТИРОВАТЬ: После некоторых проб и ошибок Мне удалось восстановить мои данные!
Некоторые из моих файлов в mysql / data были повреждены. Итак, мне удалось восстановить мои данные следующим образом:
Я удалил все файлы в mysql / data, за исключением папки моей базы данных;
Я скопировал данные в mysql / backup в mysql / data;
Я заменил ibdata1, ib_logfile0 и ib_logfile1 на исходные.
Я надеюсь, что эта информация может помочь кому-то еще.