From 962effc961467afabd549ec7c7159b05568620b7 Mon Sep 17 00:00:00 2001 From: Christoph Date: Mon, 13 Feb 2023 15:45:50 +0100 Subject: [PATCH] mysql_backup.sh: add comment.. --- hosts/scripts/mysql_backup.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/hosts/scripts/mysql_backup.sh b/hosts/scripts/mysql_backup.sh index 874b6c6..07d21c2 100755 --- a/hosts/scripts/mysql_backup.sh +++ b/hosts/scripts/mysql_backup.sh @@ -101,6 +101,14 @@ ## - on command line. ## - ## - +## - MariaDB > 10.3 or installed from debian package system: +## - +## - mysql -u root -S /var/run/mysqld/mysqld.sock -N -s -e "CREATE USER 'backup'@'localhost' IDENTIFIED BY 'backup'" +## - +## - mysql -u root -S /var/run/mysqld/mysqld.sock -N -s -e "GRANT USAGE ON *.* TO 'backup'@'localhost'" +## - +## - mysql -u root -S /var/run/mysqld/mysqld.sock -N -s -e "GRANT SELECT, SHOW VIEW, EVENT, LOCK TABLES, RELOAD, REPLICATION CLIENT ON *.* TO 'backup'@'localhost'" +## - ## - !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! err_Log=${LOCK_DIR}/mysql.err.log