From 518e8dfefe9cc6347122535bd6d8a942081f5a36 Mon Sep 17 00:00:00 2001 From: roufiq Date: Wed, 4 Apr 2018 20:40:21 +0700 Subject: [PATCH] error when restore dump file sql remove three semicolon ;;; --- helpers/MysqlBackup.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers/MysqlBackup.php b/helpers/MysqlBackup.php index bbd8cd8..2ac374b 100644 --- a/helpers/MysqlBackup.php +++ b/helpers/MysqlBackup.php @@ -137,7 +137,7 @@ public function getData($tableName) { $values = "\n" . $valueString; if ($values != "") { - $data_string = "INSERT INTO `$tableName` (`$items`) VALUES" . rtrim ( $values, "," ) . ";;;" . PHP_EOL; + $data_string = "INSERT INTO `$tableName` (`$items`) VALUES" . rtrim ( $values, "," ) . ";" . PHP_EOL; if ($this->fp) fwrite ( $this->fp, $data_string ); }