今天在备份MYSQL数据库的时候,导出TEST数据时发现报错:
C:\Users\Administrator>mysqldump -u root -p test>test.sql
Enter password: ****
mysqldump: Got error: 1168: Unable to open underlying table which is differently
defined or of non-MyISAM type or doesn't exist when using LOCK TABLES
看到error描述:which is differently defined or of non-MyISAM type,我记得之前TEST数据库里面的引擎是INNODB,但我昨天测试的时候加了3张表是MYISAM的。难到是这样所以备份不了。
如是我删除了MYISAM的表后:
C:\Users\Administrator>mysqldump -u root -p test>test.sql
Enter password: ****
C:\Users\Administrator>
就OK拉。
我又重建了几张MYISAM的表,发现备份也没问题。