Zen Cart Logo
Forums / General Questions / 1146 Table 'mynewdatabase.configuration' doesn't exist in:

1146 Table 'mynewdatabase.configuration' doesn't exist in:

Locked

Views: 9,114

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
3 Feb 2009, 1:19 PM
#1
marymortis avatar

marymortis

New Zenner

Join Date:
Nov 2008
Posts:
11
Plugin Contributions:
0

1146 Table 'mynewdatabase.configuration' doesn't exist in:

Hello, I'm moving one of my stores to another host (from godaddy to webfusion). I followed this tutorial to the letter https://www.zen-cart.com/tutorials/index.php?article=100 many times over the last few days and have scoured the forum for a solution. The issue is after importing the old database into the new one and running fix_cach_key I get

1146 Table 'mydatabase.configuration' doesn't exist
in:
[select configuration_key as cfgkey, configuration_value as cfgvalue from configuration].

I checked the configure.php files and the database is named correctly, I had no prefixes and I can't see anything else out of place. I've recreated the new database a few times and re-installed zen cart from scratch as many times again and still can't get it right. What am I missing? :frusty: I have another move to do soon so if I can learn my mistakes here with your help, I'd be eternally grateful :unsure:

3 Feb 2009, 3:07 PM
#2
skipwater avatar

skipwater

Totally Zenned

Join Date:
Jun 2008
Location:
Washington, DC
Posts:
775
Plugin Contributions:
1

Re: 1146 Table 'mynewdatabase.configuration' doesn't exist in:

1146 Table 'mydatabase.configuration' doesn't exist
in:
[select configuration_key as cfgkey, configuration_value as cfgvalue from configuration].

Your error states that the configuration table in not in your data base.

So is it there?

What utility are you using to work with the database?

Skip

3 Feb 2009, 3:26 PM
#3
marymortis avatar

marymortis

New Zenner

Join Date:
Nov 2008
Posts:
11
Plugin Contributions:
0

Re: 1146 Table 'mynewdatabase.configuration' doesn't exist in:

skipwater:

Your error states that the configuration table in not in your data base.

So is it there?

What utility are you using to work with the database?

Skip

Thanks for your reply, there appear to be no tables in the database.
Another thing I just looked at where the versions on Myphp admin (which is where I created my old .sql file in the old one and imported the .sql file on the new one) the old db is on v4.1 and the new is on v5 would this make a difference?

3 Feb 2009, 3:46 PM
#4
skipwater avatar

skipwater

Totally Zenned

Join Date:
Jun 2008
Location:
Washington, DC
Posts:
775
Plugin Contributions:
1

Re: 1146 Table 'mynewdatabase.configuration' doesn't exist in:

How did you export you old data with what options checked in myphpadmin?

Export:
SQL

Structure:
[] Add DROP TABLE / DROP VIEW
[x] Add IF NOT EXISTS
[x] Add AUTO_INCREMENT value
[
] Enclose table and field names with backquotes
[_] Add CREATE PROCEDURE / FUNCTION

Data:
[] Complete inserts
[
] Extended inserts
[] Maximal length of created query
[
] Use delayed inserts
[] Use ignore inserts
[
] Use hexadecimal for BLOB
Export type INSERT

If your exported SQL file is missing the add if not exists command it will not build the tables for you.

Skip

3 Feb 2009, 5:57 PM
#5
marymortis avatar

marymortis

New Zenner

Join Date:
Nov 2008
Posts:
11
Plugin Contributions:
0

Re: 1146 Table 'mynewdatabase.configuration' doesn't exist in:

Gotcha, thank you!
I'm pretty new at this and this is the first move I've ever done, so I just followed the tutorial and didn't think to check anything else.
Many thanks for your help, it'll make my next move so much easier! <3 Skip X

~ Mary

5 Feb 2009, 3:07 PM
#6
marymortis avatar

marymortis

New Zenner

Join Date:
Nov 2008
Posts:
11
Plugin Contributions:
0

Re: 1146 Table 'mynewdatabase.configuration' doesn't exist in:

Actually, if you don't mind, I need to ask for help again. I took on someone else's Zen Cart not knowing that I was just getting their old cart and .sql file on disk (had assumed the shop was still live) and I'm getting the same error. Is there a way I can modify their .sql file to work. I've no idea what the last person did (they were friends of the client but aren't any longer!) during the creation of the file. Would you give it a look over for me and point me in the right direction? flutters eyelashes

~ Mary

5 Feb 2009, 6:49 PM
#7
marymortis avatar

marymortis

New Zenner

Join Date:
Nov 2008
Posts:
11
Plugin Contributions:
0

Re: 1146 Table 'mynewdatabase.configuration' doesn't exist in:

Sorry I was AFK earlier, I work in a store and had to deal with customers, also my pop-up blocker kicked in and I hadn't noticed the message. Set to allow pop ups from here now :)

25 Apr 2009, 4:36 PM
#8
hedonist avatar

hedonist

New Zenner

Join Date:
Apr 2009
Location:
Europe
Posts:
1
Plugin Contributions:
0

Re: 1146 Table 'mynewdatabase.configuration' doesn't exist in:

Hello,please help me.I am new in SQL and when I wanted to create newsletter in Fantasticodelux, i installed it right but when i configure attributes i got this mesage:
Database error 1146 while doing query Table 'hedonist_plst1.phplist_user_user' doesn't exist
What should i do?I have no idea.Thanks.

14 Oct 2009, 9:04 PM
#9
kibb avatar

kibb

New Zenner

Join Date:
Dec 2008
Posts:
9
Plugin Contributions:
0

Re: 1146 Table 'mynewdatabase.configuration' doesn't exist in:

This may help someone, it worked for me when receiving the "1146" error, and I had checked all configure.php settings and all were correct.

The "mysql_zencart.sql" file that exists in the Zen Cart install directory "zc_install/sql/" is the key. I user PHPMyAdmin to connect to the database, then click the "Import" tab, and import that mentioned sql file. This builds the initial database structure.

Once that step was complete, then running "http://mywebsite.org/zc_install" proceeded without that blasted 1146 error.