Results 1 to 10 of 57

Hybrid View

  1. #1
    Join Date
    Sep 2009
    Posts
    2
    Plugin Contributions
    0

    Default Re: MYSQL Backup error

    My apologies Dr Byte!!

    I masked my real admin address by typing in 'admin' for the example of my error message, oh whoops it's lowercase ..etc..

    Basically, assuming for a minute that I haven't actually done anything to the original code (I hadn't)

    and the code looked exactly the same as the last user who asked the very same question (it did) ..

    Then what I am pointing out is (just like that other user) I had to delete your FS_ADMIN in the FS_BACKUP definition in favour of a full filepath to my backup directory in order to get it to work on the site.

    Yet on the other site (on the same hosting server, and both using same version of Zen Cart, installed on the same day) it worked fine with no tweaking neccessary!


    I wanted to draw attention to the fact that even on the same host this contibution looks a bit hit and miss (thus far!).

    I thought that perhaps a demonstrated 'filepath fix' be offered in the installation instructions with 'MySql Backup' ?

    Other users may have the same problem and this would probably save them some time.

  2. #2
    Join Date
    Mar 2009
    Posts
    59
    Plugin Contributions
    0

    Default Re: MYSQL Backup error

    ZC current version. Backup button appears, directory permissions 777.

    Backup attempt generates:

    Warning: dir(DIR_FS_backups/) [function.dir]: failed to open dir: No such file or directory in /home/fasteners/www/www/catalog/myadmin/backup_mysql.php on line 402


    The relevant parts of the configure.php file:

    define('DIR_FS_ADMIN', '/home/myclient/www/www/catalog/myadmin/');

    define('DIR_FS_BACKUP', DIR_FS_ . 'backups/');

    Any ideas as to why the backup is failing?

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

    Default Re: MYSQL Backup error

    Um ... use DIR_FS_ADMIN instead of just DIR_FS_
    .

    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.

  4. #4
    Join Date
    Jan 2006
    Posts
    66
    Plugin Contributions
    0

    Default Re: MYSQL Backup error

    We've used this tool on multiple Zen Carts in the past and now one of them has started throwing an error when running the tool:

    Result code: 2
    0 => mysqldump: Got error: 1045: Access denied for user 'username'@'localhost' (using password: YES) when trying to connect
    Failure: The database has NOT been saved.

    Where username is our user name for the database. It seems rather odd that we're logged into the admin and then the mod is unable to use the same user info to run the backup. We're using ver 1.3.5 on this store.

    Thanks for your help.
    Last edited by pfabrick; 27 Jan 2010 at 09:40 PM.
    Patti - OnlineCatholicStore.com
    ZC 1.3.9h with multisite mod -- ZC ROCKS!

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

    Default Re: MYSQL Backup error

    If your database is actually hosted on a separate server (ie: DB_SERVER isn't 'localhost') then you're going to encounter that error, and will have to use phpMyAdmin to do the database backups instead.

    If the problem "just started" but was working "before", you'll need to work with your hosting company to figure out what the "something" was that changed "before" it broke.
    .

    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.

  6. #6
    Join Date
    Jan 2006
    Posts
    66
    Plugin Contributions
    0

    Default Re: MYSQL Backup error

    Thank you for your update. We actually have a dedicated server which is hosting this Zen Cart and the data base resides on this server as well. We have other Zen Carts on this server which are using this mod successfully, we just can't get this one to work.

    As we can back up via phpMyAdmin, it's just nicer to use this mod in the admin.
    Patti - OnlineCatholicStore.com
    ZC 1.3.9h with multisite mod -- ZC ROCKS!

  7. #7
    Join Date
    Jun 2009
    Posts
    187
    Plugin Contributions
    0

    Default Re: MYSQL Backup error

    My Backup button disappeared. This was a great util. Any idea why the button would disappear? The restore button is still there.

    Thanks

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

    Default Re: MYSQL Backup error

    If the backup folder isn't writable, the button won't be shown.
    .

    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. Edit Orders addon is giving MySQL error
    By m.digregorio in forum Managing Customers and Orders
    Replies: 0
    Last Post: 2 Aug 2012, 09:41 PM
  2. Backup MySql plugin error
    By jwurster in forum All Other Contributions/Addons
    Replies: 5
    Last Post: 29 Jun 2009, 07:56 PM
  3. Backup MySql error
    By Geixa in forum General Questions
    Replies: 9
    Last Post: 14 May 2009, 03:47 AM
  4. After host change, mysql backup giving error 1045
    By canemasters in forum General Questions
    Replies: 12
    Last Post: 25 May 2008, 08:18 PM
  5. Backup MySQL Module error
    By oxicottin in forum General Questions
    Replies: 8
    Last Post: 16 May 2007, 02:38 PM

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