Page 1 of 2 12 LastLast
Results 1 to 10 of 327

Hybrid View

  1. #1
    Join Date
    Feb 2011
    Location
    Lumberton, TX
    Posts
    629
    Plugin Contributions
    0

    Default Re: Backup MySQL Database

    I am testing a site very similar to lat9 https://www.example.com/test. I am getting this error.

    0 => mysqldump: Got error: 1045: "Access denied for user '************User'@'localhost' (using password: YES)" when trying to connect

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,942
    Plugin Contributions
    96

    Default Re: Backup MySQL Database

    Quote Originally Posted by g2ktcf View Post
    I am testing a site very similar to lat9 https://www.example.com/test. I am getting this error.

    0 => mysqldump: Got error: 1045: "Access denied for user '************User'@'localhost' (using password: YES)" when trying to connect
    Does your site's database password also include any "special" characters?

  3. #3
    Join Date
    Feb 2011
    Location
    Lumberton, TX
    Posts
    629
    Plugin Contributions
    0

    Default Re: Backup MySQL Database

    I saw your issues with special characters (there are three). I have plans to change that and see if that works.

  4. #4
    Join Date
    Feb 2011
    Location
    Lumberton, TX
    Posts
    629
    Plugin Contributions
    0

    Default Re: Backup MySQL Database

    After removing all special characters, this works just fine.

  5. #5
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,915
    Plugin Contributions
    13

    Default Re: Backup MySQL Database

    Quote Originally Posted by lat9 View Post
    Does your site's database password also include any "special" characters?
    speaking of special characters.....

    if your admin directory has any special characters, it seems that the following change is necessary (for backing up... around line 133):

    PHP Code:
    //from
    $dump_params .= ' "--result-file=' DIR_FS_BACKUP $backup_file '"';
    //to
    $dump_params .= ' "--result-file=' escapeshellcmd(DIR_FS_BACKUP) . $backup_file '"'
    it may be worth wild to change all instances of DIR_FS_BACKUP to $backup_directory and define said var at the beginning of the script as such:

    PHP Code:
    $backup_directory escapeshellcmd(DIR_FS_BACKUP); 
    but alas, i do not have the time or inclination at this moment for further testing.
    author of square Webpay.
    mxWorks now has Apple Pay and Google Pay. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  6. #6
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,835
    Plugin Contributions
    31

    Default Re: Backup MySQL Database

    Since I have modified this to death over the years, I've set up a new repository based on this plugins history to be able to add in changes at some point.

    So please add this link to the plugin page for reporting issues:

    https://github.com/torvista/Zen_Cart-Backup_MYSQL_Plugin
    Steve
    github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

  7. #7
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,835
    Plugin Contributions
    31

    Default Re: Backup MySQL Database

    When doing a backup->Download without storing on server, I note that
    - a dumpfile is created, ok
    - a download window opens, ok
    - the download occurs, ok
    - another dumpfile is created, NOT ok.

    After the header-exit, it seems to be re-running the same page using action backupnow, but despite my efforts I can't stop it.
    Consequently every time I take a backup snapshot from the hosting for local use, it leaves behind 300Mb of debris which I need to delete manually.

    (In my modified version of this plugin, the original dumpfile is unlinked after download, but still, a new one is created as per the plugin version)
    Steve
    github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

  8. #8
    Join Date
    May 2011
    Location
    Tennessee
    Posts
    510
    Plugin Contributions
    0

    Default Re: Backup MySQL Database

    I just tried the backup mysql on my new 2.0.1 upgrade and it just gives a blink to the admin page and returns to the admin page. Has anyone successfully install it?

  9. #9
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,532
    Plugin Contributions
    127

    Default Re: Backup MySQL Database

    Please post the debug log file from the /logs folder. It has been tested and should work.
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  10. #10
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,942
    Plugin Contributions
    96

    Default Re: Backup MySQL Database

    Quote Originally Posted by torvista View Post
    Since I have modified this to death over the years, I've set up a new repository based on this plugins history to be able to add in changes at some point.

    So please add this link to the plugin page for reporting issues:

    https://github.com/torvista/Zen_Cart-Backup_MYSQL_Plugin
    All finished.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. 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
  2. Database Backup Manager - MySQL
    By sicness in forum All Other Contributions/Addons
    Replies: 7
    Last Post: 7 Aug 2006, 09:42 PM
  3. Backup MySQL Database failure
    By JFD in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 3 Jun 2006, 06:55 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