AWS RDS上的Mysql模式显示数据库元数据中不可用的表(信息模式)

AWS RDS上的Mysql模式显示数据库元数据中不可用的表(信息模式),mysql,amazon-web-services,information-schema,Mysql,Amazon Web Services,Information Schema,我在AWS RDS上有一个MySQL模式,其中有一个表,列在show tables的输出中命令,但在使用desc查看表结构时引发错误命令。我已在元数据中查询此表的任何引用,但也找不到任何引用 奇怪的是,我们设置了mysql变量lower\u case\u table\u names=1,但是这个特定的表是用表名中的大写名称创建的。除非有可能在我不知道的会议上设置这个 显示表格的输出 desc的输出/错误消息 以下用于在元数据中查询表名的命令返回零结果 select * from inform

我在AWS RDS上有一个MySQL模式,其中有一个表,列在
show tables的输出中命令,但在使用
desc查看表结构时引发错误命令。我已在元数据中查询此表的任何引用,但也找不到任何引用

奇怪的是,我们设置了mysql变量
lower\u case\u table\u names=1
,但是这个特定的表是用表名中的大写名称创建的。除非有可能在我不知道的会议上设置这个

显示表格的输出

desc的输出/错误消息

以下用于在元数据中查询表名的命令返回零结果

select * from information_schema.COLUMNS where TABLE_NAME like '%tempPartInfo%';
select * from information_schema.COLUMN_PRIVILEGES where TABLE_NAME like '%tempPartInfo%';
select * from information_schema.FILES where TABLE_NAME like '%tempPartInfo%';
select * from information_schema.KEY_COLUMN_USAGE where TABLE_NAME like '%tempPartInfo%';
select * from information_schema.KEY_COLUMN_USAGE where REFERENCED_TABLE_NAME like '%tempPartInfo%';
select * from information_schema.PARTITIONS where TABLE_NAME like '%tempPartInfo%';
select * from information_schema.REFERENTIAL_CONSTRAINTS where TABLE_NAME like '%tempPartInfo%';
select * from information_schema.REFERENTIAL_CONSTRAINTS where REFERENCED_TABLE_NAME like '%tempPartInfo%';
select * from information_schema.STATISTICS where TABLE_NAME like '%tempPartInfo%';
select * from information_schema.TABLES where TABLE_NAME like '%tempPartInfo%';
select * from information_schema.TABLE_CONSTRAINTS where TABLE_NAME like '%tempPartInfo%';
select * from information_schema.TABLE_PRIVILEGES where TABLE_NAME like '%tempPartInfo%';
select * from information_schema.VIEWS where TABLE_NAME like '%tempPartInfo%';
select * from information_schema.INNODB_CMP_PER_INDEX where table_name like '%tempPartInfo%';
select * from information_schema.INNODB_BUFFER_PAGE_LRU where TABLE_NAME like '%tempPartInfo%';
select * from information_schema.INNODB_CMP_PER_INDEX_RESET where table_name like '%tempPartInfo%';
select * from information_schema.INNODB_BUFFER_PAGE where TABLE_NAME like '%tempPartInfo%';
此时,在此表中转储整个架构的任何尝试都会失败。任何删除表的尝试都会失败,并显示相同的错误消息SQL
error(1051):未知表'v**********r.temppartinfo'

不确定此表在哪一点损坏,因为我在旧备份中有表结构


非常感谢您为删除此表提供的任何帮助。

解决此问题的唯一方法是将整个架构(损坏的表除外)导出到新架构中。

检查您的
temppartinfo
是否是视图,而不是实际的表。很有可能是它的
视图
而不是
@RedBoy不幸的是,情况并非如此。information\u schema.views也没有关于此类视图的记录。对不起,我不是这方面的专家,如果它对您有用的话,我只是想导出除temppartinfo之外的所有表
,然后导入导出的数据
。这将使您的新实例
更干净
,然后重新关注剩余的
tempartinfo
@RedBoy,这也正是我所想的。将损坏表以外的所有内容导出到新架构。但是,由于这是一个生产环境,并且模式很大,所以考虑一下是否有其他解决方案来消除损坏的表。感谢您的回复。有关如何解决此问题的任何更新?:手指交叉: