mysqldump throws: Unknown table 'COLUMN_STATISTICS' in information_schema (1109)

AWS RDS_MYSQL 8.0 执行mysqldump报以下错误

mysqldump throws: Unknown table 'COLUMN_STATISTICS' in information_schema (1109)

 

具体

$> mysqldump --single-transaction --host host -u user -p db > db.sql
mysqldump: Couldn't execute 'SELECT COLUMN_NAME, JSON_EXTRACT(HISTOGRAM,
'$."number-of-buckets-specified"') FROM
information_schema.COLUMN_STATISTICS WHERE SCHEMA_NAME = 'db' AND
TABLE_NAME = 'Absence';':
Unknown table 'COLUMN_STATISTICS' in information_schema (1109)

 

解决方式:

$> mysqldump --column-statistics=0 --host host -u user -p db > db.sql

 

posted @ 2022-09-06 20:48  MR__Wang  阅读(39)  评论(0编辑  收藏  举报