Results 1 to 10 of 10
  1. #1
    Join Date
    Nov 2009
    Posts
    34
    Plugin Contributions
    0

    Default upgrading database

    Hi,

    am doing a fresh intall of V1.5 on my server and am following this article, as I would like to import the data from my live database from my old install (1.3.8a, (flexible attributes and additional sideboxes mods) from fantastico, I know, knew nothing then so am doing it properly now)

    Have created a new database to install V1.5 into, and have imported the data from my live shop into this new database as advised, so now the new db has inherited the old dbs structure I need to upgrade the new db.

    Everythings fine when I run the installer, I get to 'database upgrade' and when I hit the button I get the correct db info and upgrade steps.

    however, there's a Database Security

    Admin Username (from Zen Cart® Admin area) and Password box at the bottom.

    As I don't have either, it hasn't been installed yet, how do I upgrade my database structure while retaining the data?

    If I install then the old db data will be lost and can't import old database because of sructural diferences.

    Can I update the structure of my old db in myphpadmin (3.4.9) to be compat with 1.5? or can I just import the bare minimum of tables I need, products, orders and customers for example

    Any suggestions would be greatly appreciated, SK

  2. #2
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: upgrading database

    Quote Originally Posted by skelly100 View Post
    however, there's a Database Security

    Admin Username (from Zen Cart® Admin area) and Password box at the bottom.

    As I don't have either
    Yes, you do. It's the admin username and password from the database you imported.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Nov 2009
    Posts
    34
    Plugin Contributions
    0

    Default Re: upgrading database

    Thanks for your very prompt reply DrByte!

    If you mean the shop admin login name and shop admin login password from my live shop, these don't seem to work..

    I found a script
    Code:
    DELETE FROM admin WHERE admin_name = 'Admin'; 
    INSERT INTO admin (admin_name, admin_email, admin_pass, admin_level) 
    VALUES ('Admin', 'admin@localhost', '351683ea4e19efe34874b501fdbf9792:9b', 1);
    which I ran but came back as non existant so i presumed this data wasn't in the old db..

    maybe my exported database from live shop is corrupted?

    SK
    Last edited by skelly100; 10 Feb 2012 at 09:41 PM. Reason: clarity

  4. #4
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: upgrading database

    You do know that you posted the password for your live shop on an open forum.. Wouldn't take much to decrypt the password and get to your site.. Just sayin'..
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  5. #5
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: upgrading database

    Diva, I'm not sure what you mean. They posted the admin pwd reset script, which is already freely available to anyone.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  6. #6
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: upgrading database

    Quote Originally Posted by skelly100 View Post
    If you mean the shop admin login name and shop admin login password from my live shop, these don't seem to work..
    ...
    which I ran but came back as non existant so i presumed this data wasn't in the old db..
    Your old db probably uses a different DB_PREFIX than what you're using on your new site.

    YOU MUST USE THE SAME DB_PREFIX ON THE NEW SITE if you want to re-use the old database contents.

    Fix the DB_PREFIX setting in your new site's configure.php files to match what's in the DB_PREFIX in your old site's configure.php files.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  7. #7
    Join Date
    Nov 2009
    Posts
    34
    Plugin Contributions
    0

    Default Re: upgrading database

    Thanks again Dr Byte for your time..

    had adjusted the db prefix so it matches the old/live db in my new config files, though I hadn't included this prefix in the passwd reset script that I ran. (wasn't my password Diva but thank you for your input)

    Will export my old/live db again and try the upgarde again, if it fails will try running the passwd reset script again with correct db tables prefix.

    Thanks again,
    SK

  8. #8
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: upgrading database

    Quote Originally Posted by DrByte View Post
    Diva, I'm not sure what you mean. They posted the admin pwd reset script, which is already freely available to anyone.
    Sorry.. I read this after e LONG day of QA testing at work and I'm afraid I saw a username and password posted, and went into auto pilot.. LOL.. My bad.. carry on..
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  9. #9
    Join Date
    Nov 2009
    Posts
    34
    Plugin Contributions
    0

    Default Re: upgrading database

    db upgrade successful !

    will recount how i did it in case of anyone else have similar problems, and for the general knowledge base..

    In old/live shop admin htaccess file found code for htpasswds, however the coresponding passwds file was empty.
    This was an extra security measure. I changed my mind as didn't want to have submit 2 passwrds when logging on each time,

    deleted the code for htpasswds, this didn't seem to help..

    Loged in to old/live shop, reset password to the same password, exported db, imported it into new db

    this didn't seem to help..

    logged into old/live admin, reset password to 'password' exported db, imported it into new db

    this did the trick, I would presume one of the charecters in my password was gettin 'lost in translation'

    (Diva, did reset passwrd before this post!)

    Thanks everyone for your help.

    SK

  10. #10
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: upgrading database

    Quote Originally Posted by skelly100 View Post
    db upgrade successful !

    will recount how i did it in case of anyone else have similar problems, and for the general knowledge base..


    In old/live shop admin htaccess file found code for htpasswds, however the coresponding passwds file was empty.

    This was an extra security measure. I changed my mind as didn't want to have submit 2 passwrds when logging on each time,

    deleted the code for htpasswds, this didn't seem to help..


    Loged in to old/live shop, reset password to the same password, exported db, imported it into new db


    this didn't seem to help..


    logged into old/live admin, reset password to 'password' exported db, imported it into new db


    this did the trick, I would presume one of the charecters in my password was gettin 'lost in translation'


    (Diva, did reset passwrd before this post!)

    Thanks everyone for your help.

    SK
    I've decided to not type/post anymore when I am tired..
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

 

 

Similar Threads

  1. v154 Upgrading database
    By kalastaja in forum Upgrading to 1.5.x
    Replies: 17
    Last Post: 29 Jan 2016, 08:34 PM
  2. Upgrading database.
    By JumboBeef in forum Upgrading from 1.3.x to 1.3.9
    Replies: 13
    Last Post: 29 Dec 2010, 05:19 PM
  3. upgrading database questions
    By fusionsp in forum Upgrading from 1.3.x to 1.3.9
    Replies: 19
    Last Post: 14 Jun 2010, 06:29 PM
  4. Trouble upgrading database
    By gift-taggs in forum Upgrading from 1.3.x to 1.3.9
    Replies: 1
    Last Post: 20 Apr 2008, 04:11 AM

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