Current time: 11-25-2024, 02:38 PM Hello There, Guest! (LoginRegister)


Post Reply 
mysql dump in ispcp-backup-all broken after password encryption
Author Message
ispcomm Offline
Junior Member
*

Posts: 93
Joined: Apr 2008
Reputation: 3
Post: #1
mysql dump in ispcp-backup-all broken after password encryption
Hi all,

the title says it all: the current implementation of ispcp-backup-all does not decrypt passwords when it needs to dump user databases. The result is that mysqldump cannot connect to the database and the backup is not performed.

A quick solution is to change line 342:
Code:
my $db_backupcmd = "$main::cfg{'CMD_MYSQLDUMP'} --add-drop-table --allow-keywords --quote-names -h\'$main::cfg{'DATABASE_HOST'}\' -u\'$dbuser\' -p\'$dbpass\' \'$db_name\' >\'$db_backup_file\'";
to
Code:
my $db_backupcmd = "$main::cfg{'CMD_MYSQLDUMP'} --add-drop-table --allow-keywords --quote-names -h\'$main::cfg{'DATABASE_HOST'}\' -uroot -proot-password \'$db_name\' >\'$db_backup_file\'";
However a proper solution would be better. I have not opened a ticket for this problem.
ispcomm.
03-23-2009 05:37 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
mysql dump in ispcp-backup-all broken after password encryption - ispcomm - 03-23-2009 05:37 PM

Forum Jump:


User(s) browsing this thread: 3 Guest(s)