Ticket #1405 (closed defect: fixed)

Opened 2 months ago

Last modified 2 months ago

mysqldump fails with remote database

Reported by: anonymous Assigned to:
Priority: minor Milestone: ispCP ω 1.0.0 - RC6
Component: Backend (Engine) Version: ispCP ω 1.0.0 - RC5
Severity: Easy Keywords: mysqldump
Cc:

Description

The mysqldump fails on usage with remote database. Because /var/www/ispcp/engine/backup/ispcp-backup-ispcp did not include the database host.

Solution will be a modification of ispcp-backup-ispcp.

Org-Code - Line 339 my $db_backupcmd = "$main::cfg{'CMD_MYSQLDUMP'} --add-drop-table --allow-keywords --quote-names -u\'$dbuser\' -p\'$dbpass\' \'$db_name\ ' >\'$db_backup_file\'";

Modificated-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\'";

This will fix the Problem.

Attachments

Change History

07/12/08 10:14:52 changed by kilburn

  • status changed from new to closed.
  • resolution set to fixed.
  • version changed from ispCP ω 1.0.0 - RC4 to ispCP ω 1.0.0 - RC5.
  • component changed from Config Files to Backend (Engine).
  • milestone changed from Working to ispCP ω 1.0.0 - RC6.

Fixed in r1270


Add/Change #1405 (mysqldump fails with remote database)




Action