From 4240d4481c33161c7a3fbd2aa9aa4bc141f68134 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Thu, 25 Feb 2010 10:50:28 -0500
Subject: [PATCH] Replaced --all with --create-options in the mysqldump statement as --all is deprecated and may lead to an error message in the sql dump.
---
install/update.php | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/install/update.php b/install/update.php
index 00a9b1d..443173c 100644
--- a/install/update.php
+++ b/install/update.php
@@ -142,11 +142,11 @@
//** export the current database data
if( !empty($conf["mysql"]["admin_password"]) ) {
- system("mysqldump -h '".$conf['mysql']['host']."' -u '".$conf['mysql']['admin_user']."' -p'".$conf['mysql']['admin_password']."' -c -t --add-drop-table --all --quick ".$conf['mysql']['database']." > existing_db.sql");
+ system("mysqldump -h '".$conf['mysql']['host']."' -u '".$conf['mysql']['admin_user']."' -p'".$conf['mysql']['admin_password']."' -c -t --add-drop-table --create-options --quick ".$conf['mysql']['database']." > existing_db.sql");
}
else {
- system("mysqldump -h '".$conf['mysql']['host']."' -u '".$conf['mysql']['admin_user']."' -c -t --add-drop-table --all --quick ".$conf['mysql']['database']." > existing_db.sql");
+ system("mysqldump -h '".$conf['mysql']['host']."' -u '".$conf['mysql']['admin_user']."' -c -t --add-drop-table --create-options --quick ".$conf['mysql']['database']." > existing_db.sql");
}
// create a backup copy of the ispconfig database in the root folder
--
Gitblit v1.9.1