Forums / Addon Admin Tools / Backup MySQL Database

Backup MySQL Database

Views: 87,449

Results 181 to 200 of 327
11 Dec 2018, 9:30 PM
#181
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,733
Plugin Contributions:
56

Backup MySQL Database

RedDevilDistributing:

Has anyone had any luck using this with the new release, 1.5.6?

Works fine. Check to be sure you uploaded all files.

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.

12 Dec 2018, 7:17 PM
#182
Join Date:
Aug 2010
Location:
US
Posts:
18
Plugin Contributions:
0

Re: Backup MySQL Database

swguy:

Works fine. Check to be sure you uploaded all files.

Thank you for your reply swguy. This is very odd. I have re-uploaded the entire package (using the exact same structure) and it still is not showing up under the Tools drop down. I am missing something very, very stupid and simple here.

T. Patterson
T
he Golden Kernal
Zen-Cart Version 2.2.2

12 Dec 2018, 8:00 PM
#183
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Backup MySQL Database

RedDevilDistributing:

Thank you for your reply swguy. This is very odd. I have re-uploaded the entire package (using the exact same structure) and it still is not showing up under the Tools drop down. I am missing something very, very stupid and simple here.
Remember this is an admin side plugin, all files need to go into the admin directory structure.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

12 Dec 2018, 8:19 PM
#184
Join Date:
Aug 2010
Location:
US
Posts:
18
Plugin Contributions:
0

Re: Backup MySQL Database

mc12345678:

Remember this is an admin side plugin, all files need to go into the admin directory structure.

Remember when I said "I am missing something really stupid here?" Have you ever had one of those times where you just KNOW that you are overlooking something very simple and then instead of just letting go and coming back to it, you just keep on plugging away at it? Yup, that is what happened here.

Uh, gee, putting it in the ADMIN directory made all of the difference in the world. Geesh, thank you for beating me over the head -- LOL! Much thanks!

T. Patterson
T
he Golden Kernal
Zen-Cart Version 2.2.2

12 Dec 2018, 9:38 PM
#185
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Backup MySQL Database

RedDevilDistributing:

Remember when I said "I am missing something really stupid here?" Have you ever had one of those times where you just KNOW that you are overlooking something very simple and then instead of just letting go and coming back to it, you just keep on plugging away at it? Yup, that is what happened here.

Uh, gee, putting it in the ADMIN directory made all of the difference in the world. Geesh, thank you for beating me over the head -- LOL! Much thanks!
Well, I can't remember if I posted to the thread or not, but I do remember the "difficulty" I had installing this plugin as my first to ever install... even though things seem pretty straight forward when really reading the instructions and looking at the folder structure, there just was something about it that didn't sink in.

Anyways, hopefully you learned something to apply to the installation of other plugins and at the same time when you see someone else with the same issue, maybe you'll jump in to help them as well.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

31 Dec 2018, 8:50 PM
#186
jodean avatar

jodean

Totally Zenned

Join Date:
May 2011
Location:
Tennessee
Posts:
511
Plugin Contributions:
0

Re: Backup MySQL Database

When I try to backup the database I get the following error?

1 => mysqldump: Got error: 1045: Access denied for user 'tennes60_zenc'@'localhost' (using password: YES) when trying to connect

admin/backups has 777 permission

31 Dec 2018, 8:53 PM
#187
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,733
Plugin Contributions:
56

Re: Backup MySQL Database

This isn't a filesystem issue, it's an issue connecting to your database. Did you try the latest version of this mod? I tried to handle the case where the password contains shell-expanded characters, which might be what you are running into.

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 Jan 2019, 7:46 AM
#188
diptimoy avatar

diptimoy

Zen Follower

Join Date:
Apr 2012
Location:
Bardhaman , Bharat
Posts:
217
Plugin Contributions:
1

Re: Backup MySQL Database

In php7.3 getting this

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? ... backup_mysql.php on line 518

How to fix?

10 Jan 2019, 12:56 PM
#189
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,733
Plugin Contributions:
56

Re: Backup MySQL Database

Change that to a break.

  if ($dir_ok == false) break;

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 Jan 2019, 1:01 PM
#190
diptimoy avatar

diptimoy

Zen Follower

Join Date:
Apr 2012
Location:
Bardhaman , Bharat
Posts:
217
Plugin Contributions:
1

Re: Backup MySQL Database

swguy:

Change that to a break.

  if ($dir_ok == false) break;

Thanks for the info. The warning message gone.

22 Feb 2019, 10:56 AM
#191
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,876
Plugin Contributions:
7

Re: Backup MySQL Database

Just changed host and belatedly discovered exec and shell_exec are disabled.
Has anyone attempted to modify this plugin to use "another method"...IS there any other method possible in the same vein: making a backup/restore from within Zen Cart?
Or, just give up and just use phpmyadmin export?

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

22 Feb 2019, 4:47 PM
#192
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: Backup MySQL Database

torvista:

Just changed host and belatedly discovered exec and shell_exec are disabled.
Has anyone attempted to modify this plugin to use "another method"...IS there any other method possible in the same vein: making a backup/restore from within Zen Cart?
Or, just give up and just use phpmyadmin export?
Are **passthru **and **system **also disabled? Those could be alternate ways to cause an external program to be executed.

22 Feb 2019, 5:00 PM
#193
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Backup MySQL Database

I have always just told my hosting site to turn it on or I am moving to another hosting site ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

22 Feb 2019, 6:53 PM
#194
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,876
Plugin Contributions:
7

Re: Backup MySQL Database

They are using this standard list:
exec, show_source, system, shell_exec, passthru, popen, proc_open

Is this just lazy protecion?

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

22 Feb 2019, 7:04 PM
#195
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: Backup MySQL Database

It seems kind of "knee-jerk", but I don't know what problem the hosting company is trying to solve by those functions' disablement.

22 Feb 2019, 8:35 PM
#196
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,733
Plugin Contributions:
56

Re: Backup MySQL Database

torvista:

Just changed host and belatedly discovered exec and shell_exec are disabled.

Close your account. Not kidding - this is a terrible red flag that they are clueless.

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.

23 Feb 2019, 8:47 AM
#197
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,876
Plugin Contributions:
7

Re: Backup MySQL Database

Thanks for your comments. Not wishing to prolong the off-thread discussion, but note that this is shared/reseller hosting, not a vps and from what I read, it seems the norm that these functions are disabled on shared hosting...I don't find any comments out there indicating it is a sign of incompetance, annoying as it is.

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

23 Feb 2019, 8:29 PM
#198
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,733
Plugin Contributions:
56

Re: Backup MySQL Database

torvista:

.. This is shared/reseller hosting, not a vps and from what I read, it seems the norm that these functions are disabled on shared hosting.

Not true. Plenty of shared hosting accounts permit you to run database backup, which depends on exec.

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.

26 Feb 2019, 10:37 PM
#199
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,876
Plugin Contributions:
7

Re: Backup MySQL Database

This file does an instant backup if called with the parameter ?backupnow, as per this post
https://www.zen-cart.com/showthread.php?35714-Backup-MySQL-Database&p=363376#post363376

In my cron tests I get "file not found" due to the ?parameter. Without the parameter it finds the file but complains about other stuff.

Anyone got this to work as a cron?

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

18 Apr 2019, 3:14 AM
#200
shrimp_gumbo_mmmhhh avatar

shrimp_gumbo_mmmhhh

Totally Zenned

Join Date:
Jun 2007
Location:
Texas, USA
Posts:
1,436
Plugin Contributions:
0

Re: Backup MySQL Database

Hello, I am using this plugin and have a VPS. This is working fine on one of my accounts but is not working on another. Here is the error messages: Running V1.56a works fine on one site but not this one. Any suggestions or thoughts? When I get on phpAdmin from this account this is the database server it is showing:

Server: localhost:3306 same as the working backup site.

Server: lo
Result code: 2
0 => mysqldump: Got error: 1045: "Access denied for user 'website'@'localhost' (using password: YES)" when trying to connect

Failure: The database has NOT been saved.