首页 > 数据库 >mysqldump 导出提示Couldn't execute SELECT COLUMN_NAME...

mysqldump 导出提示Couldn't execute SELECT COLUMN_NAME...

时间:2022-10-31 16:00:50浏览次数:54  
标签:... execute Couldn COLUMN ip mysqldump sql SELECT

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

相关文章