From 5f8aa92eae68f25e61b149192eade6a8d64cacac Mon Sep 17 00:00:00 2001 From: creme Date: Wed, 15 Jan 2020 10:06:25 +0100 Subject: [PATCH] fix mysql db creation --- bin/envs_user_manage | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/envs_user_manage b/bin/envs_user_manage index db4f86a..7e019e1 100755 --- a/bin/envs_user_manage +++ b/bin/envs_user_manage @@ -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 }