mirror of https://git.envs.net/envs/ops.git
fix mysql db creation
This commit is contained in:
parent
75835f92f6
commit
5f8aa92eae
|
@ -25,7 +25,7 @@ head_def="$head_mime\r\n$head_type"
|
|||
add_user_db() {
|
||||
mysql -u root << EOF
|
||||
CREATE DATABASE $user;
|
||||
GRANT ALL PRIVILEGES ON $USER.* TO '$user'@'localhost' IDENTIFIED BY '$newpw';
|
||||
GRANT ALL PRIVILEGES ON $user.* TO '$user'@'localhost' IDENTIFIED BY '$newpw';
|
||||
FLUSH PRIVILEGES;
|
||||
EOF
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue