Zen Cart Logo
Forums / Installing on a Linux/Unix Server / New Install, Old Tables

New Install, Old Tables

Locked

Views: 1,399

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
1 Jan 2010, 10:09 PM
#1
fishchairs avatar

fishchairs

New Zenner

Join Date:
Jan 2010
Posts:
10
Plugin Contributions:
0

New Install, Old Tables

i did a complete new install of the cart but i have my old tables. i went and uploaded the back up of the database that i had.

all looks good but i have duplicate tables. half are named without the zen_ prefix, which were the originals from the new install.

the other half have the zen_ prefix and look like they're the populated tables.

i may be wrong using the word tables but i'm hoping someone gets my drift and can help me. i do believe i change something in the config file and delete the tables that we're built on the install.

can anyone shed some light on what i need to do here?

thanks,
dana

2 Jan 2010, 5:16 AM
#2
fishchairs avatar

fishchairs

New Zenner

Join Date:
Jan 2010
Posts:
10
Plugin Contributions:
0

Re: New Install, Old Tables

ok, i found the lines in the config file and added the correct table prefix, but when i did, i get this error for the admin area, the admin area was working fine before i added the correct table prefix. also, i dumped all the old tables that were not popluted from the install -

1146 Table 'addyfish_addy.project_version' doesn't exist
in:
[select * from project_version WHERE project_version_key = 'Zen-Cart Database' ]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

all my products and descriptions from before showed up so i'm almost there, can anyone help me fix that error i'm getting for the admin folder?

THANKS!

2 Jan 2010, 7:11 AM
#3
tino_schlegel avatar

tino_schlegel

Totally Zenned

Join Date:
Nov 2007
Location:
Melbourne, Australia
Posts:
532
Plugin Contributions:
0

Re: New Install, Old Tables

Do you have the same Zencart version As before? I guess not.

Maybe post you before and after version to get further advise.

2 Jan 2010, 8:30 AM
#4
fishchairs avatar

fishchairs

New Zenner

Join Date:
Jan 2010
Posts:
10
Plugin Contributions:
0

Re: New Install, Old Tables

i used the latest download/version this website had

thanks

2 Jan 2010, 8:39 AM
#5
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: New Install, Old Tables

fishchairs:

ok, i found the lines in the config file and added the correct table prefix,

Although probably not related to your immediate problem, do keep in mind that this change needs to be made in BOTH configure.php files.

fishchairs:

but when i did, i get this error for the admin area, the admin area was working fine before i added the correct table prefix. also, i dumped all the old tables that were not popluted from the install -

Dumping the old tables was a good idea, because it ensures you only have one set of data to work with.

fishchairs:

1146 Table 'addyfish_addy.project_version' doesn't exist
in:

This looks wrong to me. zencart generally uses the underscore character as the prefix/name separator, so assuming your prefix is "addyfish_" the table name should be 'addyfish_project_version'

For some reason or another, your prefix appears to be "addyfish_addy." so perhaps you messed up when you edited your config file?

fishchairs:

[select * from project_version WHERE project_version_key = 'Zen-Cart Database' ]

This also looks 'wrong' in that it implies a prefix isn't used at all (Not that that is wrong in itself, but if a prefix is expected then this select command won't find the table named "project_version"

fishchairs:

all my products and descriptions from before showed up so i'm almost there, can anyone help me fix that error i'm getting for the admin folder?

THANKS!

Double check your prefixes, and ensure you make the same changes in both configure.php files, because this really does look like you may have made a typo with your edits. Something is definiterly fishy with "addyfish_addy." being used as a prefix in one place, and no apparent prefix being used in another.

Cheers
Rod

2 Jan 2010, 1:27 PM
#6
fishchairs avatar

fishchairs

New Zenner

Join Date:
Jan 2010
Posts:
10
Plugin Contributions:
0

Re: New Install, Old Tables

ok, i have to go to work and will check this out tonight. it looks like i may get it from your writings, thank you very much! i will keep you posted either way.

2 Jan 2010, 1:38 PM
#7
fishchairs avatar

fishchairs

New Zenner

Join Date:
Jan 2010
Posts:
10
Plugin Contributions:
0

Re: New Install, Old Tables

got my admin screen, user name and passwords are bad. will figure that out later, thanks!!!

2 Jan 2010, 2:00 PM
#8
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: New Install, Old Tables

fishchairs:

got my admin screen, user name and passwords are bad. will figure that out later, thanks!!!

You'll be needing to use the username/password that was stored in your old tables rather than those used when you setup the new installation.

Cheers
Rod

2 Jan 2010, 2:03 PM
#9
fishchairs avatar

fishchairs

New Zenner

Join Date:
Jan 2010
Posts:
10
Plugin Contributions:
0

Re: New Install, Old Tables

got that minutes ago! now im late for work, im in and running, have to fix server patch level when i get home tonight and thats it! thanks again!!!!!!!