mysql导出指定数据库文件,报错Unknown table ‘column_statistics‘ in information_schema (1109)

进入mysql 安装目录,进入命令行模式
mysql导出指定数据库文件,报错Unknown table ‘column_statistics‘ in information_schema (1109)_第1张图片

mysqldump   -uroot -p myweb > /D:/myweb.sql

报错:

mysqldump: Couldn’t execute ‘SELECT COLUMN_NAME, JSON_EXTRACT(HISTOGRAM, ‘$.“number-of-buckets-specified”’) FROM information_schema.COLUMN_STATISTICS WHERE SCHEMA_NAME = ‘myweb’ AND TABLE_NAME = ‘app_ad’;’: Unknown table ‘column_statistics’ in information_schema (1109)

mysql 8.0 使用这个命令

mysqldump --column-statistics=0  -uroot -p myweb > myweb.sql

你可能感兴趣的:(生产环境问题,数据库,mysql,android)