Describe the bug
If I want to create a backup via the web interface I get an error that the 'COLUMN_STATISTICS' table is unknown.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A backup will be generated and available to download afterwards.
Server (please complete the following information):
Desktop (please complete the following information):
Error Messages
Error: Backup failed because The dump process failed with exitcode 2 : Misuse of shell builtins : mysqldump: Couldn't execute 'SELECT COLUMN_NAME, JSON_EXTRACT(HISTOGRAM, '$."number-of-buckets-specified"') FROM information_schema.COLUMN_STATISTICS WHERE SCHEMA_NAME = 'db_e46c6a80_d35b_4736_ae1e_84a5cf5fda6c' AND TABLE_NAME = 'accessories';': Unknown table 'COLUMN_STATISTICS' in information_schema (1109) .
Additional context
yaml
applications:
<ul>
<li>name: snipe-dev<br />
buildpacks:</li>
<li>php_buildpack<br />
memory: 512M<br />
instances: 1<br />
routes:</li>
<li>route: xxx.yyy.com<br />
stack: cflinuxfs3<br />
health-check-type: http<br />
health-check-http-endpoint: /login<br />
env:<br />
# --------------------------------------------<br />
# REQUIRED: BASIC APP SETTINGS<br />
# --------------------------------------------<br />
APP_ENV: development<br />
APP_DEBUG: true<br />
APP_KEY: xxx<br />
APP_URL: <a href="https://xxx.yyy.com">https://xxx.yyy.com</a><br />
# --------------------------------------------<br />
# OPTIONAL: SESSION SETTINGS<br />
# --------------------------------------------<br />
COOKIE_NAME: snipeit_session_dev<br />
COOKIE_DOMAIN: xxx.yyy.com<br />
Looks like it's connected to this issue:
https://serverfault.com/questions/912162/mysqldump-throws-unknown-table-column-statistics-in-information-schema-1109
Workaround:
/etc/my.cnf or ~/.my.cnf:
[mysqldump]
column-statistics=0
Server FaultEvery 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_EXT...
Thanks for updating with a solution!
Most helpful comment
Workaround:
/etc/my.cnfor~/.my.cnf:Source: https://serverfault.com/questions/912162/mysqldump-throws-unknown-table-column-statistics-in-information-schema-1109/912677#912677