新建立一个测试库
mysql> create database t2;
mysql> use t2;mysql> create table if not exists testt1(id int(4),content varchar(20));
ERROR 1050 (42S01): Table '`t2`.`testt1`' already exists结果发生了幽灵表的问题
mysql> create table if not exists testt1(id int(4),content varchar(20));
ERROR 1050 (42S01): Table '`t2`.`testt1`' already existsmysql> insert into testt1 values(0005,"laugh ge");
ERROR 1146 (42S02): Table 't2.testt1' doesn't existmysql> show tables;
Empty set (0.00 sec)因为之前使用直接删掉数据库文件夹的方式,将这个t2库干掉了。
搜了一下 information_schema 这个库select * from TABLES where TABLE_SCHEMA='t2' limit 5;
结果是空!求问这个问题如何处理?MySQL