mirror of
https://github.com/myvesta/vesta
synced 2025-07-05 20:41:53 -07:00
Unsuspend database does not restore permissions remote users
See https://github.com/hestiacp/hestiacp/issues/3011 and https://github.com/hestiacp/hestiacp/issues/3014
This commit is contained in:
parent
374b4da5bc
commit
c6d226023e
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