If you'd ever have got this error, it's probably because you're trying to dump SQL data from a older MySQL/MariaDB server via. MySQL-client arround 8.0 or above.
I had this error a couple of times, and it seem there was a couple of solution shown on the internet, but I found one that was promising and did work for me in some Drupal Deployer projects.
To work arround this error: Add this flag to your mysqldump command:
--skip-column-statistics
Wrapped up, your command will look something like this:
mysqldump -u <user> -p <pass> -h <host> <db-name> --skip-column-statistics > path/to/file.sql
If you are using Drupal and Drush and prefers to make your SQL backups via. Drush command, your command will probably look something like this:
drush sql-dump --extra-dump="--skip-column-statistics"