MySQL 启动报错 Could not find a valid tablespace file for xxxx

Could not find a valid tablespace file for xxxx. Please refer to http://dev.mysql.com/doc/refman/5.7/en/innodb-troubleshooting-datadict.html for how to resolve the issue.

原因

数据文件损坏或者数据文件发生了未知的错误

解决方式

  1. 删掉该数据库目录
  2. 登录数据库, 使用 DROP DATABASE 删掉该数据库
  3. 重新启动 MySQL
  4. 重新创建该数据库
posted @ 2022-02-09 19:02  kmswilliam  阅读(1833)  评论(0)    收藏  举报