Results 1 to 10 of 22

Hybrid View

  1. #1
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Database backup mySQL can't restore

    Contribution has been updated to incorporate the above fix as well as remove the requirement to check the skip-lock-tables radio-button if your MySQL user doesn't have the required permissions. (It now traps that error and re-attempts the backup with the skip-locks parameters set.)

    http://www.zen-cart.com/index.php?ma...products_id=81
    .

    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.

  2. #2
    Join Date
    Aug 2005
    Location
    Cincinnati
    Posts
    334
    Plugin Contributions
    0

    Default Database backup v 1.3 works great with my ZC 1.3.7

    Thanks, DrByte! I replaced the line around 123 ($dump_params) as you first indicated, but I got
    Parse error: parse error, unexpected T_CASE in /hsphere/local/home/user/domain/admin/backup_mysql.php on line 207
    when I tried running the mod. I then downloaded and unzipped the revised mod from your link, and compared revised files to the existing ones. Noticing you'd overhauled admin/backup_mysql.php in a big way, I installed the complete version 1.3.

    Bravo! Works flawlessly with 1.3.7, at least in so far as it omits the LOCK_TABLES from new backups. Haven't tried restoring from backup yet; I'll install 1.3 on a non-productive site this weekend and do a restore from backup.

    Again, many thanks and a round of coffee for the fix.

    Sean
    Quote Originally Posted by DrByte View Post
    Contribution has been updated to incorporate the above fix as well as remove the requirement to check the skip-lock-tables radio-button if your MySQL user doesn't have the required permissions ...

  3. #3
    Join Date
    Apr 2007
    Location
    Tampa, Florida
    Posts
    180
    Plugin Contributions
    0

    Default Re: Database backup mySQL can't restore

    Hello,
    I downloaded and installed Database Backup 1.3 today and I'm getting errors when I try to do a backup.

    “Warning Result code: 2
    Warning 0 => /usr/bin/mysqldump: File '/usr/share/mysql/charsets/?.conf' not found (Errcode: 2)
    Warning 1 => /usr/bin/mysqldump: Character set '#33' is not a compiled character set and is not specified in the '/usr/share/mysql/charsets/Index' file
    Warning 2 => /usr/bin/mysqldump: Got error: 1251: Client does not support authentication protocol requested by server; consider upgrading MySQL client when trying to connect”


    I'm wondering if this is not working because I'm hosted with GoDaddy, or could it be something in the local setup. Any information would be appreciated.

    I'm using cart version 1.3.7

    Thanks.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Database backup mySQL can't restore

    That sounds like it's a server config problem that is most likely a result of limitations GoDaddy has set on their server.
    You might be able to get resolution via their tech support team (ask them to address the charset issues in their mysql configuration).
    However, since your database sits on a server that is separate from your hosting server, you may have some limitations in using the server-side tool to do the backup.
    You'll likely have to use phpMyAdmin instead, or some backup option offered by GoDaddy's control panel, if any.
    .

    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.

  5. #5
    Join Date
    Apr 2007
    Location
    Tampa, Florida
    Posts
    180
    Plugin Contributions
    0

    Default Re: Database backup mySQL can't restore

    Thanks, I'll check with GoDaddy. I was warned of possible limitations but hadn't run into any until now.
    Thanks.

  6. #6
    Join Date
    Apr 2007
    Location
    Tampa, Florida
    Posts
    180
    Plugin Contributions
    0

    Default Re: Database backup mySQL can't restore

    I'm on the phone now with Godaddy and it doesn't sound like they have a clue.

    Is there anyone else using this Mod and hosted with Godaddy?

    Thanks.

  7. #7
    Join Date
    Aug 2005
    Location
    Cincinnati
    Posts
    334
    Plugin Contributions
    0

    Default Re: Database backup mySQL can't restore

    Sounds like the experience I had with GoDaddy web hosting several years ago. Sorry, I hadn't even heard of Zen-Cart back then. Their tech support was so inept, I haven't considered them for hosting since.

    Wow. That sounded bitchy, even for me. (And off-topic.)

    If it helps, you might forward the following from DrByte's readme to the GoDaddy tech support staff:
    This tool does not work on servers running in strict safe_mode, or with open.basedir restrictions in effect, or with restrictions against
    using "exec()" commands. There is no way to work around these limitations
    without turning off the restrictions on your server. Contact your host for more information on such possibilities.
    Quote Originally Posted by gxjenkins View Post
    I'm on the phone now with Godaddy and it doesn't sound like they have a clue.

 

 

Similar Threads

  1. Backup database restore on a new site
    By Soul39 in forum Upgrading from 1.3.x to 1.3.9
    Replies: 5
    Last Post: 22 Apr 2011, 05:52 PM
  2. Can't restore my database backup
    By jasonhoward64 in forum General Questions
    Replies: 4
    Last Post: 18 Mar 2011, 05:28 AM
  3. How to backup and restore the database ?
    By greenlight in forum General Questions
    Replies: 3
    Last Post: 16 Sep 2008, 09:03 AM
  4. Backup MySQL Database vs using cPanel backup option?
    By IronMan101 in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 30 Jul 2007, 08:46 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