mysqldump导出数据库报错:
Couldn't execute 'SELECT COLUMN_NAME, JSON_EXTRACT(HISTOGRAM, '$."number-of-buckets-specified"') FROM information_schema.COLUMN_STATISTICS WHERE SCHEMA_NAME = 'superitcsdb' AND TABLE_NAME = 'auth_group';': Unknown table 'COLUMN_STATISTICS' in information_schema (1109)
原因:
因为新版的mysqldump默认启用了一个新标志,通过- -column-statistics=0来禁用他
解决方法:
mysqldump --column-statistics=0 -h ip -u root -p dbname > db.sql