diff --git a/seqs/mysql.sh b/seqs/mysql.sh index 6e7f3e9..763ca56 100755 --- a/seqs/mysql.sh +++ b/seqs/mysql.sh @@ -55,7 +55,7 @@ step_8() { step_10_info() { echo "Create mysql database without specific characterset [OPTIONS]" echoinfo " [OPTIONS]" - echoinfo " --charset,-c : character set and collate" + echoinfo " --charset,-c : character set and collate" echoinfo " --database, -d : database name" echoinfo " --user, -u : user name" echoinfo " Manual password entry for non existing user" @@ -83,9 +83,12 @@ step_10() { done case "$dbOption" in + utf8) + dbOption="CHARACTER SET utf8 COLLATE utf8_unicode_ci";; utf8mb4) - dbOption="CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci" - ;; + dbOption="CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci";; + *) + dbOption="";; esac if [ -z "$dbName" ] ; then @@ -127,7 +130,7 @@ step_14() { } step_16_info() { echo "List mysql user"; } -step_16_alias() { ALIAS="listdbuser"; } +step_16_alias() { ALIAS="listuser"; } step_16() { exe mysql -u root -e 'SELECT User, Host FROM mysql.user;' echo -e "\nDrop dbuser by: mysql -u root -e 'DROP USER dbuser@localhost;'"