Get the book

Go Back   Zen Cart Support > General Questions > General Questions

General Questions Questions that don't fit elsewhere

Reply
 
Thread Tools Display Modes
Old 3rd November 2009, 07:48 PM   #1
jo_h1971
New Zenner
 
Join Date: Oct 2009
Posts: 17
Default Database problems

Hello

Hoping someone may be able to help!

I am having a similar issue to the person in this thread http://www.zen-cart.com/forum/showthread.php?t=50603 as I see two databases when I look at the admin.configure.php file and admin/includes/configure.php

I am no longer able to access one of the databases as we were having lots of problems with the host and then moved hosts. I think that the website is still picking up the products from the database that I cannot get in to so how can I update and backup the database if I can't get to it at all?!

Thanks in advance
jo_h1971 is offline   Reply With Quote
Old 3rd November 2009, 09:12 PM   #2
jammin320
Zen Follower
 
jammin320's Avatar
 
Join Date: Mar 2007
Location: Seattle, WA
Posts: 155
Default Re: Database problems

If your two config files are showing two different databases, then you certainly have an issue. They both should be pointed to the same DB. You will want to figure out which one is correct (probably by checking the behavior in your store), and make the appropriate adjustments.

As far as accessing the database, that is something that you will likely need to work out with your hosting company. They will have the information to allow you to access the database directly.
__________________
-Ben www.NewLeafInternet.com
jammin320 is offline   Reply With Quote
Old 3rd November 2009, 09:33 PM   #3
jo_h1971
New Zenner
 
Join Date: Oct 2009
Posts: 17
Default Re: Database problems

Hi Ben

Thanks for your reply.

Thats the problem in a nutshell! The database is pointing to a host that I cannot contact anymore and have no access to. Is there anyway at all that I can do a back up of it somehow so I can move it to my new host?

Thanks for your help
jo_h1971 is offline   Reply With Quote
Old 3rd November 2009, 09:37 PM   #4
afo
Support Team
 
afo's Avatar
 
Join Date: Aug 2004
Location: New York City
Posts: 5,951
Default Re: Database problems

The database information in the config files should match. Do you know which one is correct?

If you didn't back up the database before the move, I doubt you can do it now.
__________________
Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey
my nephew's site
afo is offline   Reply With Quote
Old 3rd November 2009, 09:47 PM   #5
niccol
Totally Zenned
 
niccol's Avatar
 
Join Date: Apr 2009
Location: In a traffic jam
Posts: 970
Default Re: Database problems

If what you are saying is that the present install is using the old database then actually there might be hope. But to be honest this seems quite unlikely.

So:

Find out for sure which database is being used by the present install as it stands at this moment. Find out for sure before you do anything else.

Your present host should be able to give you access to the new database via phpMyAdmin (or a similar tool) Use that to really assure yourself that it is not the new database that is being used.
__________________
Nick
niccol is offline   Reply With Quote
Old 3rd November 2009, 09:59 PM   #6
jo_h1971
New Zenner
 
Join Date: Oct 2009
Posts: 17
Default Re: Database problems

Wow everyone thanks for the replies.

How would I find out for definite which database is being used?

The admin/configure.php and admin/includes/configures.php database entries are definitely different.

Thank you so much again
jo_h1971 is offline   Reply With Quote
Old 3rd November 2009, 10:06 PM   #7
jo_h1971
New Zenner
 
Join Date: Oct 2009
Posts: 17
Default Re: Database problems

Come to think about it, the new host backed up the files and then transferred them themselves. I am nearly 100% sure that the database is still being hosted by the old hosts because we sometimes get the 0_db error not connected message and when I have contacted the new hosts about it, they said it is because it is still being hosted elsewhere
jo_h1971 is offline   Reply With Quote
Old 3rd November 2009, 10:10 PM   #8
niccol
Totally Zenned
 
niccol's Avatar
 
Join Date: Apr 2009
Location: In a traffic jam
Posts: 970
Default Re: Database problems

Questions:

What makes you think it is the old database that is being used? This is very very unlikey.

What did you do when you moved the site? Was the database exported in any way?

Can you find out from your present host how to access the database directly? As I said you are looking for phpMyAdmin or a similar tool. If you can do this then just change a bit of data, for instance a product name, in the database and see if that change is reflected in the shop. If it is then the new database is being used.
__________________
Nick
niccol is offline   Reply With Quote
Old 3rd November 2009, 10:13 PM   #9
niccol
Totally Zenned
 
niccol's Avatar
 
Join Date: Apr 2009
Location: In a traffic jam
Posts: 970
Default Re: Database problems

so, if the database was exported, then what is the problem with just making sure the new database is used?

Why do you want to try to export the old database again?

Surely you just want to make the configure files both point towards the new database?

Nick
__________________
Nick
niccol is offline   Reply With Quote
Old 3rd November 2009, 10:15 PM   #10
niccol
Totally Zenned
 
niccol's Avatar
 
Join Date: Apr 2009
Location: In a traffic jam
Posts: 970
Default Re: Database problems

And when did you transfer the site? How long ago?
__________________
Nick
niccol is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Database Problems andy General Questions 3 4th April 2009 03:24 AM
problems with database jongo Installing on a Linux/Unix Server 3 28th August 2007 03:46 PM


All times are GMT +1. The time now is 11:18 PM.

Learn tips, tricks & secrets for your Zen Cart™
Sign up for our FREE Newsletter

Powered by vBulletin® Version 3.7.6
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content and Graphics Copyright (c) 2006, 2007, 2008, 2009 Zen Ventures, LLC - all rights reserved
Get Zen Cart E-Commerce Shopping Cart at SourceForge.net. Fast, secure and Free Open Source software downloads