Skip to content

Commit

Permalink
fix(linux): add reload privilege to mysql user (#221)
Browse files Browse the repository at this point in the history
  • Loading branch information
bytestream authored Nov 19, 2024
1 parent 5c490df commit 989c3b0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions templates/linux/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -531,6 +531,7 @@ install_mysql() {
mysql --user="root" --password="${root_password}" -e "CREATE DATABASE \`${database}\`;"
mysql --user="root" --password="${root_password}" -e "CREATE USER '${username}'@'localhost' IDENTIFIED BY '$user_password';"
mysql --user="root" --password="${root_password}" -e "GRANT ALL PRIVILEGES ON \`${database}\`.* TO '${username}'@'localhost';"
mysql --user="root" --password="${root_password}" -e "GRANT RELOAD,PROCESS ON *.* TO '${username}'@'localhost';"
mysql --user="root" --password="${root_password}" -e "FLUSH PRIVILEGES;"
}

Expand Down

0 comments on commit 989c3b0

Please sign in to comment.