进入mysql 安装目录,进入命令行模式
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