diff --git a/hosts/scripts/mysql_backup.sh b/hosts/scripts/mysql_backup.sh index b64367a..3848f26 100755 --- a/hosts/scripts/mysql_backup.sh +++ b/hosts/scripts/mysql_backup.sh @@ -34,6 +34,14 @@ ## - Password field is now: "authentication_string" ## - INSERT INTO user (Host,User,authentication_string,Select_priv,Super_priv,Process_priv,Lock_tables_priv,Show_view_priv,Event_priv,Execute_priv,ssl_cipher,x509_issuer,x509_subject) VALUES('localhost','backup',password('backup'),'Y','Y','Y','Y','Y','Y','Y','','',''); ## - +## - +## - Since MySQL 8.x - Password is now set by an extra statement - 'password' function +## - is no longer supported +## - INSERT INTO user (Host,User,Select_priv,Super_priv,Process_priv,Lock_tables_priv,Show_view_priv,Event_priv,Execute_priv,ssl_cipher,x509_issuer,x509_subject) VALUES('localhost','backup','Y','Y','Y','Y','Y','Y','Y','','',''); +## - +## - ALTER USER 'backup'@'localhost' IDENTIFIED WITH mysql_native_password BY 'backup'; +## - +## - ## - MariaDB (10.1.x) ## - ## - INSERT INTO user (Host,User,Password,Select_priv,Super_priv,Process_priv,Lock_tables_priv,Show_view_priv,Event_priv,Execute_priv,ssl_cipher,x509_issuer,x509_subject) VALUES('localhost','backup',password('backup'),'Y','Y','Y','Y','Y','Y','Y','','','');