From ea780bda4adb06ed85a2729133bb5055dba80013 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Tue, 11 Apr 2023 18:03:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BackupCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BackupCommand.php b/BackupCommand.php index bb83f22..b2f9042 100644 --- a/BackupCommand.php +++ b/BackupCommand.php @@ -57,7 +57,7 @@ class BackupCommand extends Command if ($table !== null) { $table = explode(',', $table); } else { - $tmp = $data->createCommand('show tables from `users`')->all(); + $tmp = $data->createCommand('show tables from `' . $data->database . '`')->all(); $table = []; foreach ($tmp as $value) { $table[] = current($value);