mysqldump still fails even when using mysqldump –column-statistics=0
# mysqldump --column-statistics=0
Just returns
# mysqldump: [ERROR] unknown variable 'column-statistics=0'
Am I missing something obvious here?
EDIT: Even trying to get the version gives me an error.
mysqldump -v
mysqldump: [ERROR] unknown variable 'column-statistics=0'
Mysql version is:
# mysql -v
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1221
Server version: 5.7.27-0ubuntu0.16.04.1-log (Ubuntu)
Which mysql:
# which mysql
/usr/bin/mysql
It's an Ubuntu server running ServerPilot. The ultimate aim is to run the SiteGround WordPress migration plugin, but it's failing with the Column Statistics error in it's log.
Also tried from the comments:
root@vultr:~# mysqldump --no-column-statistics
mysqldump: [ERROR] unknown variable 'column-statistics=0'
root@vultr:~# mysqldump --skip-column-statistics
mysqldump: [ERROR] unknown variable 'column-statistics=0'
root@vultr:~#
and then even mysqldump on it's own errors:
# mysqldump
mysqldump: [ERROR] unknown variable 'column-statistics=0'
Best Answer
And what would be the use of this parameter?: