在 Centos 7 + DirectAdmin 中,当我想以 ADMIN 身份从所有用户进行备份时遇到问题。
错误信息 :
Error while backing up database admin_USER1
Error while backing up database admin_USER1: The sql file is 0 bytes in size: /home/admin/admin_backups/admin/backup/admin_USER1.sql
mysqldump error output: mysqldump: Got error: 1045: "Access denied for user 'da_admin'@'localhost' (using password: YES)" when trying to connect
<18:34:04>
Error while backing up database RES_USER2
Error while backing up database RES_USER2: The sql file is 0 bytes in size: /home/admin/admin_backups/ken/backup/RES_USER2.sql
mysqldump error output: mysqldump: Got error: 1045: "Access denied for user 'da_admin'@'localhost' (using password: YES)" when trying to connect
Error while backing up database RES_USER3
Error while backing up database RES_USER3: The sql file is 0 bytes in size: /home/admin/admin_backups/ken/backup/RES_USER3.sql
mysqldump error output: mysqldump: Got error: 1045: "Access denied for user 'da_admin'@'localhost' (using password: YES)" when trying to connect
答案1
通常 DirectAdmin 保留 MySQL 用户/密码/usr/local/directadmin/conf/mysql.conf
。
但是,在 DirectAdmin + CentOS 7 中,.zip 文件中还有另一个 MySQL(用户/密码)文件
/usr/local/directadmin/conf/my.cnf
。
检查这个文件!