Add quote between dbname on mysql request
This commit is contained in:
parent
8beb2e0748
commit
d458c006bd
|
@ -97,7 +97,7 @@ do
|
|||
|
||||
## If all tables use InnoDB engine, we use --single-transaction
|
||||
## Also, if one or more table use MyISAM engine, we need lock all tables
|
||||
if mysql --user=${USERNAME} --password=${PASSWORD} --host=${HOST} --port=${PORT} -N -e "select engine from information_schema.tables where table_schema = ${dbname}" | grep "MyISAM" -q;
|
||||
if mysql --user=${USERNAME} --password=${PASSWORD} --host=${HOST} --port=${PORT} -N -e "select engine from information_schema.tables where table_schema = '${dbname}'" | grep "MyISAM" -q;
|
||||
then
|
||||
warning "${dbname} have a table who using MyISAM engine."
|
||||
info "Dumping with lock"
|
||||
|
|
Loading…
Reference in a new issue