mirror of
https://github.com/myvesta/vesta
synced 2025-08-21 05:44:08 -07:00
Merge pull request #148 from jaapmarcus/patch-1
Unsuspend database does not restore permissions remote users
This commit is contained in:
commit
8791d471c6
1 changed files with 1 additions and 1 deletions
|
@ -468,7 +468,7 @@ suspend_pgsql_database() {
|
|||
# Unsuspend MySQL database
|
||||
unsuspend_mysql_database() {
|
||||
mysql_connect $HOST
|
||||
query="GRANT ALL ON \`$database\`.* FROM \`$DBUSER\`@\`%\`"
|
||||
query="GRANT ALL ON \`$database\`.* TO \`$DBUSER\`@\`%\`"
|
||||
mysql_query "$query" > /dev/null
|
||||
query="GRANT ALL ON \`$database\`.* TO \`$DBUSER\`@localhost"
|
||||
mysql_query "$query" > /dev/null
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue