Zen Cart Logo
Forums / General Questions / Which database is the right one in phpMyAdmin?

Which database is the right one in phpMyAdmin?

Views: 914

Results 1 to 10 of 10
7 Aug 2014, 2:41 AM
#1
moonandstars avatar

moonandstars

New Zenner

Join Date:
Aug 2014
Posts:
4
Plugin Contributions:
0

Which database is the right one in phpMyAdmin?

Hi - I've had many Zen Cart developers work on my cart over the years. I went to do a backup via phpMyAdmin and found 10 Zen Cart databases listed. Is there any way to find out which one is actually live on my site so I only need to do one backup? I wasn't able to see dates within the Structure tab, and I couldn't find the database name in Zen Cart admin either. Once I figure out which is the right one, can the others be deleted from phpMyAdmin?

Thanks for any advice :)

7 Aug 2014, 2:47 AM
#2
mc12345678 avatar

mc12345678

Totally Zenned

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

Re: Which database is the right one in phpMyAdmin?

moonandstars:

Hi - I've had many Zen Cart developers work on my cart over the years. I went to do a backup via phpMyAdmin and found 10 Zen Cart databases listed. Is there any way to find out which one is actually live on my site so I only need to do one backup? I wasn't able to see dates within the Structure tab, and I couldn't find the database name in Zen Cart admin either. Once I figure out which is the right one, can the others be deleted from phpMyAdmin?

Thanks for any advice :)

Somewhat for security, the database is not identified in the admin panel; however, if you look in the file that is in your admin folder, includes directory called configure.php there should be an entry that includes the database name. Though, truly the one that is ofpossibly most concern is what is listed in the store's includes directory also called configure.php.

7 Aug 2014, 2:49 AM
#3
mc12345678 avatar

mc12345678

Totally Zenned

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

Re: Which database is the right one in phpMyAdmin?

As for removal of the others, probably should ask for assistance from your host to ensure that the information (particularly of an older version of ZC that potentially included financial data) is securly and completely erased.

7 Aug 2014, 3:04 AM
#4
moonandstars avatar

moonandstars

New Zenner

Join Date:
Aug 2014
Posts:
4
Plugin Contributions:
0

Re: Which database is the right one in phpMyAdmin?

Thank you SO much - that's exactly where it was :) I really appreciate it your help. I'll check with my host re: the earlier versions. Thanks again!!

7 Aug 2014, 3:24 AM
#5
mc12345678 avatar

mc12345678

Totally Zenned

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

Re: Which database is the right one in phpMyAdmin?

moonandstars:

Thank you SO much - that's exactly where it was :) I really appreciate it your help. I'll check with my host re: the earlier versions. Thanks again!!

Glad that helped. While you are on the clean up frenzy, you may want to make sure that there is only one store that has been attempted to be installed in te current database. Ie the admin table is listed more than once, each time with a different prefix. (Absence of a prefix is still a prefix. )

7 Aug 2014, 3:30 AM
#6
moonandstars avatar

moonandstars

New Zenner

Join Date:
Aug 2014
Posts:
4
Plugin Contributions:
0

Re: Which database is the right one in phpMyAdmin?

Great point! The more I dig through this, the more I'm seeing remnants of previous carts, old folders still left on the server, etc. It's a bit of a mess and hard to navigate through the correct files. I'm not very technical, so it might need to leave everything as-is so I don't delete something by mistake. Thanks again for your help.

7 Aug 2014, 3:46 AM
#7
mc12345678 avatar

mc12345678

Totally Zenned

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

Re: Which database is the right one in phpMyAdmin?

moonandstars:

Great point! The more I dig through this, the more I'm seeing remnants of previous carts, old folders still left on the server, etc. It's a bit of a mess and hard to navigate through the correct files. I'm not very technical, so it might need to leave everything as-is so I don't delete something by mistake. Thanks again for your help.

Welcome. Backups are your friend. There are a number of relatively non-technical ways
To figure out what must stay and what can go. There's a relatively simple "plugin" that shows the override directory structure as well as the basic directory structure. (Other directories are either not applicable or were created by a "needed" plugin.

7 Aug 2014, 9:13 AM
#8
torvista avatar

torvista

Totally Zenned

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

Re: Which database is the right one in phpMyAdmin?

I'm not very technical, so it might need to leave everything as-is so I don't delete something by mistake
I would always say make a complete local copy of everything (you can export all the databases in one go from phpMyadmin) and leave your working shop well alone until you have cleaned up the local fileset and db. Synchronize the files remote/local with Beyond Compare.

7 Aug 2014, 9:46 PM
#9
moonandstars avatar

moonandstars

New Zenner

Join Date:
Aug 2014
Posts:
4
Plugin Contributions:
0

Re: Which database is the right one in phpMyAdmin?

Wonderful! I didn't realize you can back everything else at once - that worked perfectly. Thank you both for your assistance :)

7 Aug 2014, 10:33 PM
#10
mc12345678 avatar

mc12345678

Totally Zenned

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

Re: Which database is the right one in phpMyAdmin?

Glad to help. Hopefully as you tinker on the test version of your site, you'll become more comfortable. :)