Skip to content

Commit 402530a

Browse files
committed
Fixed database user authentification on backup restore.
A special thanks to @joshbmarshall for pointing us on the right way.
1 parent 7feced5 commit 402530a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ All notable changes to this project will be documented in this file.
5656
- Fixed formatting of backup exclusions textbox.
5757
- Fixed MultiPHP upgrade script to update all web templates.
5858
- Fixed report issue link in installer scripts.
59+
- Fixed database user authentification on backup restore.
5960

6061
## [1.0.6] - 2019-09-24 - Hotfix
6162
### Bugfixes

func/rebuild.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -631,8 +631,8 @@ rebuild_mysql_database() {
631631
mysql_query "CREATE USER \`$DBUSER\`@localhost" > /dev/null
632632
else
633633
# mariadb = 10
634-
mysql_query "CREATE USER IF NOT EXISTS \`$DBUSER\`" > /dev/null
635-
mysql_query "CREATE USER IF NOT EXISTS \`$DBUSER\`@localhost" > /dev/null
634+
mysql_query "CREATE USER IF NOT EXISTS \`$DBUSER\` IDENTIFIED BY PASSWORD '$MD5'" > /dev/null
635+
mysql_query "CREATE USER IF NOT EXISTS \`$DBUSER\`@localhost IDENTIFIED BY PASSWORD '$MD5'" > /dev/null
636636
fi
637637
# mariadb any version
638638
query="UPDATE mysql.user SET Password='$MD5' WHERE User='$DBUSER'"

0 commit comments

Comments
 (0)