diff --git a/plugins/localdump/mysql.sh b/plugins/localdump/mysql.sh
index 43e200d00ea57dc3696074331bd62dc96e13987d..91f7a95d4b34127bd14432e8c930ac2e4a362b85 100755
--- a/plugins/localdump/mysql.sh
+++ b/plugins/localdump/mysql.sh
@@ -100,8 +100,7 @@ function mysql.db.import(){
 
   # https://mariadb.org/mariadb-dump-file-compatibility-change/
   # if sandbox mode is detected then skip the first line
-  local sSandbox; sSandbox='/*!999999\- enable the sandbox mode */'
-  if zcat "$_dumpfile" | head -1 | grep -Fq "$sSandbox" 
+  if zcat "$_dumpfile" | head -1 | grep -Fq '!999999\- enable the sandbox mode'
   then
     zcat "$_dumpfile" | tail +2 | mysql $BACKUP_PARAMS "${_dbname}"
   else