itsource

Maria용 Automysql 백업 구성DB

mycopycode 2022. 10. 26. 22:40
반응형

Maria용 Automysql 백업 구성DB

Automysql백업을 사용하여 데이터베이스를 백업하려고 합니다.MariaDB 10.3을 사용하고 있습니다.MariaDB에서 root 사용자의 사용자 이름과 비밀번호를 설정하고, 또한 Automysqlbackup 구성 파일도 설정했습니다./etc/default/automysqlbackup

다음은 Automysqlbackup 구성입니다.

# Username to access the MySQL server e.g. dbuser
#USERNAME=`grep user /etc/mysql/debian.cnf | tail -n 1 | cut -d"=" -f2 | awk '{print $1}'`
USERNAME=tutor_db

# Username to access the MySQL server e.g. password
#PASSWORD=`grep password /etc/mysql/debian.cnf | tail -n 1 | cut -d"=" -f2 | awk '{print $1}'`
PASSWORD=rootpassword

# Host name (or IP address) of MySQL server e.g localhost
DBHOST=localhost

내가 달릴 때sudo automysqlbackup접속이 거부되었다고 표시되어 있습니다.

ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

아직 root을 사용자 이름으로 사용하고 있는데 사용자 이름을 사용자 이름으로 설정했습니다.tutor_db. automysqlbackup 설정 방법을 알고 싶습니다.

언급URL : https://stackoverflow.com/questions/70178269/configure-automysqlbackup-for-mariadb

반응형