From 9ab09570af9a471299948b445fb10ac2c4471d8d Mon Sep 17 00:00:00 2001 From: Sangelo Date: Fri, 14 Jul 2023 09:48:10 +0200 Subject: [PATCH] modify init --- management/user-mgmt.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/management/user-mgmt.sh b/management/user-mgmt.sh index da6a78d..a34bb75 100755 --- a/management/user-mgmt.sh +++ b/management/user-mgmt.sh @@ -5,7 +5,7 @@ # Variables E_BADARGS=65 MYSQL=`which mysql` -MYSQL_USER="sangelo" +MYSQL_USER="root" USAGE=" $0 -- user management script Usage: @@ -25,7 +25,7 @@ fi # Switch between different actions case "$1" in "init") - Q1="CREATE TABLE IF NOT EXISTS usermgmt.users (username varchar(255), name varchar(255), description varchar(255));" + Q1="CREATE SCHEMA if not exists usermgmt; use usermgmt; CREATE TABLE if not exists users (username varchar(255), name varchar(255), description varchar(255));" SQL="${Q1}" ;; "add")