mysql8.0使用mysqldump报错:Unknown table ‘column_statistics‘ in information_schema (1109)

脚本:

#!/bin/bash
mysqldump -h127.0.0.1 -uroot -p123456 test > 1.sql

报错:

Unknown table 'COLUMN_STATISTICS' in information_schema (1109)

解决:添加参数 –column-statistics=0

分析:多是mysql8.0+高版本的 mysqldump命令 去访问低版本的mysql实例发生

原文地址:https://www.cnblogs.com/gered/p/14185022.html