Every time I try to make a mysqldump I get the following error:
$> mysqldump --single-transaction --host host -u user -p db > db.sql
mysqldump: Couldn't execute 'SELECT COLUMN_NAME, JSON_EXTRACT(HISTOGRAM,
'$."number-of-buckets-specified"') FROM
information_schema.COLUMN_STATISTICS WHERE SCHEMA_NAME = 'db' AND
TABLE_NAME = 'Absence';':
Unknown table 'COLUMN_STATISTICS' in information_schema (1109)
The result is a dump which is not complete. The strange thing is that the same command, executed from another host, works without throwing any errors. Did someone experienced the same problem?
I'm using mysql-client 8.0 and try to access a mysql 5-7 server - maybe that is the reason?






--column-statistics=0argument to the generated argument list in the box at the bottom of the popup window. – Travesty3 May 01 '19 at 14:35mysql, and installmariadbinstead. – Edward Ned Harvey Sep 07 '21 at 19:31Add ANALYZE TABLE statements to the output to generate histogram statistics for dumped tables when the dump file is reloaded. This option is disabled by default because histogram generation for large tables can take a long time.
– questionto42 Dec 23 '21 at 22:05But in reality,enabled` is the default, see 8.0 mysqldump does not work against 5.7 server.