Skip to content

Commit

Permalink
flush mariadb privs to load grants before modifying them
Browse files Browse the repository at this point in the history
  • Loading branch information
tomjn authored Oct 28, 2024
1 parent b6297c5 commit 0f6b77d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions provision/core/mariadb/provision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,9 @@ SQL
# give the safemode server a chance to start,
sleep 1
sql=$( cat <<-SQL
ALTER USER 'root'@'localhost' IDENTIFIED BY 'root';
FLUSH PRIVILEGES;
FLUSH PRIVILEGES;
ALTER USER 'root'@'localhost' IDENTIFIED BY 'root';
FLUSH PRIVILEGES;
SQL
)
mysql -u root -e "${sql}"
Expand Down

0 comments on commit 0f6b77d

Please sign in to comment.