Forums / General Questions / Empty database?

Empty database?

Locked

Started by waveneybooks on 4 Nov 2006, 12:09 PM · Views: 4,045

Results 1 to 20 of 22
This thread is locked. New replies are disabled.
4 Nov 2006, 12:09 PM
#1
waveneybooks avatar

waveneybooks

New Zenner

Join Date:
Sep 2006
Location:
Suffolk, UK
Posts:
64
Plugin Contributions:
0

Empty database?

Hi

I would like to download my stock database. When going to phpmyadmin in the cpanel the stock database shows as containing 0 products.
Where do I find my stock?
Have I gone loopy? :cry:

Thanks, Tina

4 Nov 2006, 2:27 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Empty database?

Check your /includes/configure.php and make sure that you are using the right database, server, path etc.

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!

4 Nov 2006, 2:37 PM
#3
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Re: Empty database?

If the products still show up on your website then they're in some database somewhere.

Vger

4 Nov 2006, 2:56 PM
#4
waveneybooks avatar

waveneybooks

New Zenner

Join Date:
Sep 2006
Location:
Suffolk, UK
Posts:
64
Plugin Contributions:
0

Re: Empty database?

Check your /includes/configure.php and make sure that you are using the right database, server, path etc.

Ajeh
I wouldn't have a clue where to look. The shop was originally installed by rentacart.co.uk
Tina :schmoll:

4 Nov 2006, 3:03 PM
#5
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Re: Empty database?

FTP to your website, then go to the 'includes' folder, highlight the configure.php file and click View. The contents of the file should appear in a text programme for you to view. You can see the database name near the bottom of the file.

Vger

4 Nov 2006, 3:11 PM
#6
waveneybooks avatar

waveneybooks

New Zenner

Join Date:
Sep 2006
Location:
Suffolk, UK
Posts:
64
Plugin Contributions:
0

Re: Empty database?

This is what I've got (sorry, but no idea what it means)

// define our database connection
define('DB_TYPE', 'mysql');
define('DB_PREFIX', '');
define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty
define('DB_SERVER_USERNAME', '');
define('DB_SERVER_PASSWORD', '
');
define('DB_DATABASE', 'waveneyb_shop');
define('USE_PCONNECT', 'false'); // use persistent connections?
define('STORE_SESSIONS', 'db'); // leave empty '' for default handler or set to 'db'

// The next 2 "defines" are for SQL cache support.
// For SQL_CACHE_METHOD, you can select from: none, database, or file
// If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache
// or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
// ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash
define('SQL_CACHE_METHOD', 'none');
define('DIR_FS_SQL_CACHE', '/home/waveneyb/public_html/shop/cache');

?>

4 Nov 2006, 3:29 PM
#7
ajeh avatar

ajeh

Oba-san

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

Re: Empty database?

Next peek at the file:
/admin/includes/configure.php

Are they both set to the same database?

Are you looking that the correct database in phpMyAdmin?

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!

4 Nov 2006, 3:35 PM
#8
waveneybooks avatar

waveneybooks

New Zenner

Join Date:
Sep 2006
Location:
Suffolk, UK
Posts:
64
Plugin Contributions:
0

Re: Empty database?

Ajeh

Thanks for taking out my personal details (smacks self hard & blushes)

This is in admin/configure

// define our database connection
define('DB_TYPE', 'mysql');
define('DB_PREFIX', '');
define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty
define('DB_SERVER_USERNAME', '');
define('DB_SERVER_PASSWORD', '
');
define('DB_DATABASE', 'waveneyb_shop');
define('USE_PCONNECT', 'false'); // use persistent connections?
define('STORE_SESSIONS', 'db'); // leave empty '' for default handler or set to 'db'

// The next 2 "defines" are for SQL cache support.
// For SQL_CACHE_METHOD, you can select from: none, database, or file
// If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache
// or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
// ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash
define('SQL_CACHE_METHOD', 'none');
define('DIR_FS_SQL_CACHE', '/home/waveneyb/public_html/shop/cache');

?>

4 Nov 2006, 4:07 PM
#9
waveneybooks avatar

waveneybooks

New Zenner

Join Date:
Sep 2006
Location:
Suffolk, UK
Posts:
64
Plugin Contributions:
0

Re: Empty database?

This is what I see in phpmyadmin

:(:schmoll: Tina

4 Nov 2006, 4:25 PM
#10
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,730
Plugin Contributions:
0

Re: Empty database?

Perhaps you need to ask your host where the database really is?

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

4 Nov 2006, 4:30 PM
#11
waveneybooks avatar

waveneybooks

New Zenner

Join Date:
Sep 2006
Location:
Suffolk, UK
Posts:
64
Plugin Contributions:
0

Re: Empty database?

Perhaps you need to ask your host where the database really is?

Hi Kim
I first contacted them about this on a support ticket yesterday morning and followed it up with an email today. Still waiting :no:

4 Nov 2006, 4:37 PM
#12
waveneybooks avatar

waveneybooks

New Zenner

Join Date:
Sep 2006
Location:
Suffolk, UK
Posts:
64
Plugin Contributions:
0

Re: Empty database?

I've just realised that my database user name and password in the configure files are not the same as my cpanel login name and password. Does this mean anything?
Thanks again, Tina

4 Nov 2006, 5:57 PM
#13
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Re: Empty database?

No. In cPanel when you set up a database you have to set up a User and Password linked to that database. However, you should also see a list of all databases and the users with access to them. The one which matches what's in your configure.php files is the one that you're trying to backup.

Vger

4 Nov 2006, 6:01 PM
#14
waveneybooks avatar

waveneybooks

New Zenner

Join Date:
Sep 2006
Location:
Suffolk, UK
Posts:
64
Plugin Contributions:
0

Re: Empty database?

I didn't set up a database. I paid to have all of this done for me. My host is not answering my pleas for help.
I've got no idea where to turn next.
I'm afraid to add anymore stock as I have no way of backing it up.
Looks like £55 down the drain.
i give up. I'm off to sulk for a few hours.
Thanks anyway, Tina

4 Nov 2006, 6:06 PM
#15
ajeh avatar

ajeh

Oba-san

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

Re: Empty database?

And the dropdown where you show _stock on the left doesn't have other databases that are perhaps the missing database?

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!

4 Nov 2006, 6:19 PM
#16
waveneybooks avatar

waveneybooks

New Zenner

Join Date:
Sep 2006
Location:
Suffolk, UK
Posts:
64
Plugin Contributions:
0

Re: Empty database?

Hi again Ajeh.
This is what I see

and when i look at the 'shop' one I see this

But nowhere can I find my items in the shop.
Going out for a few hours now to clear my head.
Tina :sleep:

4 Nov 2006, 7:35 PM
#17
tshooters avatar

tshooters

Totally Zenned

Join Date:
Dec 2005
Posts:
1,037
Plugin Contributions:
2

Re: Empty database?

Tina,

_shop appears to be the database for your store. You have 23 categories,
correct? If you scroll on down to products, you should see that you have
222 products. I got that number from your store site/All products.

If you click on the browse button in the products table (very left button...
mouse hover over it..make sure it says browse), you should see all your products.

4 Nov 2006, 8:38 PM
#18
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,846
Plugin Contributions:
0

Re: Empty database?

Why not install the MySql Backup module and then you don't have to mess around with exporting in phpMyAdmin. Something about you messing around in there scares me:wink2: . The MySql Backup module will let you do the DB backup from the store admin. You may want to have somebody set it up for you. If you decided to do it as an export in phpMyAdmin then always remember Do Not click on a red x and when choosing any menu items Do Not choose "drop".

You also want to do a backup of the whole DB not just the products tables.

Mike
AEIIA - Zen Cart Certified & PCI Compliant Hosting
The Zen Cart Forum...Better than a monitor covered with post-it notes!

4 Nov 2006, 10:22 PM
#19
waveneybooks avatar

waveneybooks

New Zenner

Join Date:
Sep 2006
Location:
Suffolk, UK
Posts:
64
Plugin Contributions:
0

Re: Empty database?

Thanks Tshooter.
I'll go off and have a peep.
Barco, it frightens me a lot more than it does you! :cry:
I've downloaded mysqlbackup & read the txt file. It says to upload to my server, but not exactly where to put it.

i'm a bit calmer now I've had a few hours break, make that a lot calmer :yes:

Thanks again, Tina

4 Nov 2006, 10:39 PM
#20
waveneybooks avatar

waveneybooks

New Zenner

Join Date:
Sep 2006
Location:
Suffolk, UK
Posts:
64
Plugin Contributions:
0

Re: Empty database?

Well, I've managed it. I've exported the csv file. It shows image file name and price. However, the title of the product is not shown.