modify init
This commit is contained in:
parent
97d1570f05
commit
9ab09570af
1 changed files with 2 additions and 2 deletions
|
@ -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")
|
||||
|
|
Reference in a new issue