今天遇到一个比较奇葩的问题,当执行rake db:migrate 出现如下错误:
rake aborted!
Mysql2::Error: Tablespace for table 'greentea_development
.schema_migrations
' exists. Please DISCARD the tablespace before IMPORT.: CREATE TABLE schema_migrations
(version
varchar(255) NOT NULL) ENGINE=InnoDB
之后我想将数据库中的表删掉试试看,到mysql中执行:
drop database Greenteadevelopment;
报出的错误同样让我不解
ERROR 1010 (HY000): Error dropping database (can't rmdir './greenteadevelopment', errno: 66)
各种gg,搜到很多都是errno:17的error,进入到数据库也没有找到什么怪异的文件。
要怎么解决,求指教
额,问题很快得到了解决。。。
http://stackoverflow.com/questions/16527054/mysql-drop-database-return-error-dropping-database-errno-66
将data中的文件夹删掉就哦啦