Hi
Someone suggested that I turn on debugging so that I could post the problem of why backups were failing.
This is the output for a manual backup
Debug info: Access denied for user 'web167-course22'@'%' to
database 'web167-course22' CREATE TEMPORARY TABLE mdl_backup_ids_temp ( id BIGINT(10) unsigned NOT NULL auto_increment, backupid VARCHAR(32) NOT NULL DEFAULT '57c951b3e8e457c62eeead432c862128', itemname VARCHAR(160) NOT NULL DEFAULT '', itemid BIGINT(10) unsigned NOT NULL, newitemid BIGINT(10) unsigned NOT NULL DEFAULT 0, parentitemid BIGINT(10) unsigned, info MEDIUMTEXT, CONSTRAINT PRIMARY KEY (id) )
Stack trace:
- line 400 of /lib/dml/moodle_database.php: ddl_change_structure_exception thrown
- line 669 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
- line 88 of /lib/ddl/database_manager.php: call to mysqli_native_moodle_database->change_database_structure()
- line 75 of /lib/ddl/database_manager.php: call to database_manager->execute_sql()
- line 499 of /lib/ddl/database_manager.php: call to database_manager->execute_sql_arr()
- line 159 of /backup/util/dbops/backup_controller_dbops.class.php: call to database_manager->create_temp_table()
- line 106 of /backup/util/dbops/backup_controller_dbops.class.php: call to backup_controller_dbops::create_temptable_from_real_table()
- line 39 of /backup/moodle2/backup_stepslib.php: call to backup_controller_dbops::create_backup_ids_temp_table()
- line 34 of /backup/util/plan/backup_execution_step.class.php: call to create_and_clean_temp_stuff->define_execution()
- line 153 of /backup/util/plan/base_task.class.php: call to backup_execution_step->execute()
- line 148 of /backup/util/plan/base_plan.class.php: call to base_task->execute()
- line 110 of /backup/util/plan/backup_plan.class.php: call to base_plan->execute()
- line 309 of /backup/controller/backup_controller.class.php: call to backup_plan->execute()
- line 111 of /backup/util/ui/backup_ui.class.php: call to backup_controller->execute_plan()
- line 89 of /backup/backup.php: call to backup_ui->execute()
I have no idea what any of that means or how to fix it
Can anyone help?