mysqldump: Couldn't execute 'show create table `PrepareList`'

今天备份数据库,遇到1146错误。

[root@server-210 logs]# /usr/local/mysql/bin/mysqldump --single-transaction   -uroot -pxxx  --force --routines --triggers    kls_archives  >210_kls_archives_$(date +%F_%H).sql
Warning: Using a password on the command line interface can be insecure.
Error: Couldn't read status information for table PrepareList ()
mysqldump: Couldn't execute 'show create table `PrepareList`': Table 'kls_archives.preparelist' doesn't exist (1146)
mysqldump: Couldn't execute 'SHOW CREATE TABLE `PrepareList`': Table 'kls_archives.preparelist' doesn't exist (1146)

show tables;有这个表

mysql> show tables;
+------------------------------------+
| Tables_in_kls_archives             |
+------------------------------------+
| PrepareList                        |
| archives_borrowing_record       

数据文件也存在:

#只截取重要部分:
ll  /data/mysql/data/kls_archives/
-rw-rw---- 1 mysql mysql     8746 Jun 14  2016 PrepareList.frm
-rw-rw---- 1 mysql mysql    98304 Jun 14  2016 PrepareList.ibd

So why?

猜你喜欢

转载自blog.csdn.net/ha_123_qq/article/details/81078290