mysqldump命令:mysql 5.7 版本内
导出数据库:mysqldump -h ip -u root -p dbname > db.sql; 导出数据库中的某个表:mysqldump -h ip -u root -p dbname tablename > tablename.sql;
错误提示:
mysqldump: Couldn't execute 'SELECT COLUMN_NAME, JSON_EXTRACT(HISTOGRAM, '$."number-of-buckets-specified"') FROM information_schema.COLUMN_STATISTICS
原因:
因为新版的mysqldump默认启用了一个新标志,通过- -column-statistics=0
来禁用它
解决方法:
mysqldump --column-statistics=0 -h ip -u root -p dbname > db.sql;标签:...,execute,Couldn,COLUMN,ip,mysqldump,sql,SELECT From: https://www.cnblogs.com/xzlive/p/16844622.html