Fix drop database when contains dash

This commit is contained in:
William Hirigoyen 2022-10-31 14:40:19 +01:00
parent e257ee242b
commit 9913579bb0
1 changed files with 1 additions and 1 deletions

View File

@ -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
}