Results 1 to 9 of 9
  1. #1
    Join Date
    Jan 2010
    Posts
    10
    Plugin Contributions
    0

    Default 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. #2
    Join Date
    Jan 2010
    Posts
    10
    Plugin Contributions
    0

    Default 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!

  3. #3
    Join Date
    Nov 2007
    Location
    Melbourne, Australia
    Posts
    541
    Plugin Contributions
    0

    Default 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.

  4. #4
    Join Date
    Jan 2010
    Posts
    10
    Plugin Contributions
    0

    Default Re: New Install, Old Tables

    i used the latest download/version this website had

    thanks

  5. #5
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: New Install, Old Tables

    Quote Originally Posted by fishchairs View Post
    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.

    Quote Originally Posted by fishchairs View Post
    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.

    Quote Originally Posted by fishchairs View Post

    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?

    Quote Originally Posted by fishchairs View Post
    [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"

    Quote Originally Posted by fishchairs View Post
    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

  6. #6
    Join Date
    Jan 2010
    Posts
    10
    Plugin Contributions
    0

    Default 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.

  7. #7
    Join Date
    Jan 2010
    Posts
    10
    Plugin Contributions
    0

    Default Re: New Install, Old Tables

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

  8. #8
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: New Install, Old Tables

    Quote Originally Posted by fishchairs View Post
    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

  9. #9
    Join Date
    Jan 2010
    Posts
    10
    Plugin Contributions
    0

    Default 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!!!!!!!

 

 

Similar Threads

  1. v155 New install but with some tables from 151
    By mesnitu in forum Upgrading to 1.5.x
    Replies: 16
    Last Post: 3 Apr 2016, 11:53 AM
  2. Host install (create new DB and migrate data) or manual install (point to old DB)?
    By kirkbross in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 25 Nov 2012, 09:11 PM
  3. Importing old DB to new only brings in 29 tables
    By rstevenson in forum Upgrading from 1.3.x to 1.3.9
    Replies: 5
    Last Post: 4 Sep 2011, 10:59 PM
  4. New Installation to replace Old Install
    By SaMortensen in forum Installing on a Linux/Unix Server
    Replies: 0
    Last Post: 6 Oct 2008, 07:28 PM
  5. old data into new install
    By jmauto in forum Upgrading from 1.3.x to 1.3.9
    Replies: 0
    Last Post: 20 Apr 2007, 12:32 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg