Skip to content

Commit 4240d44

Browse files
committed
Replaced --all with --create-options in the mysqldump statement as --all is deprecated and may lead to an error message in the sql dump.
1 parent a5e83c4 commit 4240d44

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

install/update.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,11 +142,11 @@
142142
//** export the current database data
143143
if( !empty($conf["mysql"]["admin_password"]) ) {
144144

145-
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");
145+
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");
146146
}
147147
else {
148148

149-
system("mysqldump -h '".$conf['mysql']['host']."' -u '".$conf['mysql']['admin_user']."' -c -t --add-drop-table --all --quick ".$conf['mysql']['database']." > existing_db.sql");
149+
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");
150150
}
151151

152152
// create a backup copy of the ispconfig database in the root folder

0 commit comments

Comments
 (0)