Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2009
    Location
    Maryland
    Posts
    65
    Plugin Contributions
    0

    Default Cannot Use Backup DB Utility after Host Tranfer

    I had the backup utility plugin working on a test store under my host. I tranferred the store to my client's host (fatcow), well now the plugin does not work it breaks with "result code: 127" "0 => sh: mysqldump: command not found" "ERROR: Could not locate the MYSQLDUMP backup utility. BACKUP FAILED".

    I found some posts which mentioned the problem was the way the host setup the mysql dump. I contacted the host and this is the message they send me:

    "Since cgi and apache are running off different servers I would recommend using the -h command after the mysql dump. You should then be able to just reference the sql host and database credentials to perform the dump.."

    Now I am a newbie when it comes to PHP, so I have no clue how to implement what they told me. As a long shot I tried modifying the file backup_mysql.php under admin/languages/english. Well it didin't work.

    From:
    "define('LOCAL_EXE_MYSQLDUMP', '/usr/bin/mysqldump'); // used for backups"

    to the following:
    "define('LOCAL_EXE_MYSQLDUMP', '/usr/bin/mysqldump.sh'); // used for backups"

    Any suggestions how to make it work?

    I am using the following:
    zen cart 1.3.8
    backup_mysql_plugin_v1-3

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Cannot Use Backup DB Utility after Host Tranfer

    Quote Originally Posted by JE2009 View Post
    ... I would recommend using the -h command after the mysql dump. You should then be able to just reference the sql host and database credentials to perform the dump.."
    The addon already operates that way.
    The problem is more likely that the mysqldump binary doesn't exist on *your* server, or (and this is very common) the client isn't kept up-to-date since few people use command-line tools on a server other than the one the database is actually on.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. Replies: 10
    Last Post: 4 Jun 2015, 01:07 PM
  2. After host change, mysql backup giving error 1045
    By canemasters in forum General Questions
    Replies: 12
    Last Post: 25 May 2008, 08:18 PM
  3. Use MySQL Backup Mod as transfer utility?
    By rbobzin in forum All Other Contributions/Addons
    Replies: 5
    Last Post: 3 Jan 2008, 12:14 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg