modify init

This commit is contained in:
Sangelo 2023-07-14 09:48:10 +02:00
parent 97d1570f05
commit 9ab09570af

View file

@ -5,7 +5,7 @@
# Variables # Variables
E_BADARGS=65 E_BADARGS=65
MYSQL=`which mysql` MYSQL=`which mysql`
MYSQL_USER="sangelo" MYSQL_USER="root"
USAGE=" USAGE="
$0 -- user management script $0 -- user management script
Usage: Usage:
@ -25,7 +25,7 @@ fi
# Switch between different actions # Switch between different actions
case "$1" in case "$1" in
"init") "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}" SQL="${Q1}"
;; ;;
"add") "add")