forked from evolix/evoadmin-web
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
|
if [ -n "$dbname" ]; then
|
||||||
set -x
|
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
|
set +x
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue