XAMPP/MySQL: could not open single-table tablespace file .\\mysql\\innodb_index_stats.ibd after restart of MySQL

不打扰是莪最后的温柔 提交于 2019-12-03 02:56:58
Janis Benda

dev_khan, try restarting MySQL in Read-Only mode with the innodb_force_recovery option enabled:

  1. Edit my.cnf - find the line: # innodb_force_recovery = 2
  2. Comment the line in (remove the #)
  3. Restart MySQL to let the MySQL engine repair itself.
  4. Comment the innodb_force_recovery line in again (add #)
  5. Restart MySQL again and you have full access again without a Read-Only-Restriction.

Greetings from Germany

Panos Angelopoulos

Move (DON'T DELETE) those files, into another folder:

innodb_index_stats.frm
innodb_table_stats.frm
slave_master_info.frm
slave_relay_log_info.frm
slave_worker_info.frm

and .ibd files with the same filename:

innodb_index_stats.ibd
innodb_table_stats.ibd
slave_master_info.ibd
slave_relay_log_info.ibd
slave_worker_info.ibd

Try start MySQL.

You can solve this problem by adding a line in your mysql config file: my.cnf or my.ini (depends on your distro)

just under [mysqld] add this line: innodb_force_recovery = 1

..
[mysqld]
innodb_force_recovery = 1 
..

Then restart your MySql Server. You could have lost some data but you'll get the server working again with your data.

Regards,

This happens with Wordpress too. It only seems to happen with the latest version as I've rolled back to previous versions of AMPPS and it works fine without throwing up this innodb issue.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!