Я выполняю резервное копирование баз данных сервера cPanel с помощью automysqlbackup в /etc/automysqlbackup.conf, который я установил: CONFIG_db_exclude=( 'information_schema' 'cphulkd' 'eximstats' 'leechprotect' 'mysql' 'modsec' )
Но я получаю следующие ошибки:
###### WARNING ######
Errors reported during AutoMySQLBackup execution.. Backup failed
Error log below..
mysqldump: Got error: 145: Table './eximstats/smtp' is marked as crashed and should be repaired when using LOCK TABLES
mysqldump: Couldn't execute 'show create table `Email-List`': SHOW VIEW command denied to user 'automysqlbackup'@'localhost' for table 'Email-List' (1142)
mysqldump: Couldn't execute 'show create table `object_1`': SHOW VIEW command denied to user 'automysqlbackup'@'localhost' for table 'object_1' (1142)
mysqldump: Couldn't execute 'show create table `object_1`': SHOW VIEW command denied to user 'automysqlbackup'@'localhost' for table 'object_1' (1142)
du: WARNING: use --si, not -H; the meaning of the -H option will soon
change to be the same as that of --dereference-args (-D)
Мои вопросы:
mysql > grant select, lock tables on *.* to 'automysqlbackup'@'localhost' identified by 'password';
) как можно устранить другие ошибки?У меня была очень похожая ошибка, и я, наконец, оставил пользователя mysql по умолчанию для automysqlbackup
это было для меня debian-sys-maint
(из /etc/mysql/debian.cnf
)
У этого уже были соответствующие права.