Fix drop database when contains dash
This commit is contained in:
parent
e257ee242b
commit
9913579bb0
|
@ -814,7 +814,7 @@ op_del() {
|
|||
|
||||
if [ -n "$dbname" ]; then
|
||||
set -x
|
||||
echo "DROP DATABASE $dbname; delete from mysql.user where user='$login' ; FLUSH PRIVILEGES;" | mysql $MYSQL_OPTS
|
||||
echo "DROP DATABASE \`$dbname\`; delete from mysql.user where user=\`$login\`; FLUSH PRIVILEGES;" | mysql $MYSQL_OPTS
|
||||
set +x
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue