question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unknown variable 'column-statistics=0'

See original GitHub issue

System information:

  • Ubuntu 20.04.2 LTS
  • DBeaver 21.0.0
  • mysqldump Ver 10.19 Distrib 10.5.9-MariaDB, for debian-linux-gnu (x86_64)

Connection specification:

  • mysql Ver 15.1 Distrib 10.5.9-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2
  • MariaDB Java Client 2.4.3

Describe the problem you’re observing:

Whenever I try to dump a local or remote database I get following error:

/usr/bin/mysqldump --column-statistics=0 --routines --add-drop-table --disable-keys (...)
Task 'MySQL dump' started at Mon Mar 01 21:13:58 CET 2021
/usr/bin/mysqldump: unknown variable 'column-statistics=0'

I guess the version check in dbeaver/dbeaver#11444 doesn’t properly detect MariaDB. Is there a way to prevent this option from being added?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:5
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
n5a5commented, Mar 3, 2021

Fixed.

1reaction
n5a5commented, Mar 2, 2021

Yep, you guys are right about the cause. Sorry for that, I will fix that soon.

Read more comments on GitHub >

github_iconTop Results From Across the Web

mysqldump still fails even with mysqldump --column-statistics=0
EDIT: Even trying to get the version gives me an error. mysqldump -v mysqldump: [ERROR] unknown variable 'column-statistics=0'. Mysql version ...
Read more >
[ERROR] unknown variable 'column-statistics=0' when ...
mysql - Getting mysqldump: [ERROR] unknown variable 'column-statistics=0' when exporting database though shell in MAMP - Stack Overflow. Stack ...
Read more >
mysqldump throws: Unknown table 'COLUMN_STATISTICS' in ...
I can confirm that MySQLWorkbench v8.0.17 fixed the issue (MacOs). It was throwing this error on MySQLWorkbench v8.0.12 and upgraded. I noticed ...
Read more >
[ERROR] unknown variable 'column-statistics=0' : Forums
mysqldump: [ERROR] unknown variable 'column-statistics=0' ; getting the above error when trying to create a mysql backup following the steps in ...
Read more >
mysqldump: unknown variable 'column-statistics=0' · Issue #608
Describe the bug When running a DB operation (both pull and push) I get the error: ▭▭ Pulling Database ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found