Survey
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
[MODULES-4428] Backup script try to backup sys database when file_per_database is enabled. Created: 2017/02/21 Updated: 2017/02/21 Status: Project: Component/s: Affects Version/s: Fix Version/s: Open Forge Modules mysql None Type: Reporter: Resolution: Labels: Remaining Estimate: Time Spent: Original Estimate: Environment: Bug Marco Nenciarini Unresolved None Not Specified Template: QA Risk Assessment: customfield_10700 true Needs Assessment None Priority: Assignee: Votes: Normal Unassigned 0 Not Specified Not Specified Ubuntu Xenial - mysql 5.7.17 Description When file_per_database is enabled, the backup script try to backup the sys database, leading to an error on recent mysql versions. mysqldump: Couldn't execute 'SELECT /*!40001 SQL_NO_CACHE */ * FROM `GLOBAL_STATUS`': The 'INFORMATION_SCHEMA.GLOBAL_STATUS' feature is disabled; see the documentation for 'show_compatibility_56' (3167) mysqldump: Couldn't execute 'SHOW FIELDS FROM `host_summary`': execute command denied to user 'backup_user'@'localhost' for routine 'sys.format_time' (1370) The backup cronjob sent one email with that error for every invocation. Disabling file_per_database solves the issue because mysqldump --all-databases knows what to do and skip the system databases. Generated at Fri May 12 03:13:39 PDT 2017 using JIRA 6.4.14#64029sha1:ae256fe0fbb912241490ff1cecfb323ea0905ca5.