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.
原因
数据文件损坏或者数据文件发生了未知的错误
解决方式
- 删掉该数据库目录
- 登录数据库, 使用 DROP DATABASE 删掉该数据库
- 重新启动 MySQL
- 重新创建该数据库