osCmax v2.5 User Manual
Results 1 to 3 of 3

osCMax v2.0 RC3 migrate database to 2.0.25

This is a discussion on osCMax v2.0 RC3 migrate database to 2.0.25 within the osCmax v2 Installation issues forums, part of the osCmax v2.0 Forums category; not sure if anyone is even reading this; from what I can tell 2.0 RC3 is pretty ancient. I have ...

      
  1. #1
    Lurker
    Join Date
    Apr 2011
    Posts
    2
    Rep Power
    0


    Question osCMax v2.0 RC3 migrate database to 2.0.25

    not sure if anyone is even reading this; from what I can tell 2.0 RC3 is pretty ancient.

    I have inherited a client who is using osCMax v2.0 RC3.
    I want to completely rebuild the site using the latest stable release ( 2.0.25 from my reading )

    I have a SQL backup of the existing RC3 database, and I need to be able to import the product database into the new 2.0.25 database.

    Is this possible? I downloaded 2.0.25 source and tried to trun the RC3-to-Stable sql file but immediately ran into errors:

    Error
    SQL query:

    #
    # MODIFY EXISTING TABLES
    #
    ALTER TABLE admin ADD admin_username varchar( 32 ) NOT NULL DEFAULT '' AFTER admin_groups_id,
    ADD UNIQUE admin_username( admin_username ) ;



    MySQL said:

    #1062 - Duplicate entry '' for key 'admin_username'

    I have a new web host setup at BlueHost and a SQL copy, so a clean slate in terms of trying things out.

    anyone have some ninja moves for me to try?

  2. #2
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default Re: osCMax v2.0 RC3 migrate database to 2.0.25

    Actually, you should use v2.5 RC1, as that is the initial stable release candidate and there are no major issues remaining with it, just minor issues and annoyances here and there. It will save you the effort of having to upgrade again in the near short term.

    Next, on to your question about database importing. The problem is that your existing admin users all have blank usernames. The easiest way around your issue is change:

    Code:
    ADD UNIQUE admin_username( admin_username );
    to

    Code:
    ADD admin_username( admin_username );
    in the upgrade script. Then run the upgrade. Next you will need to use phpmyadmin to manually edit the admin rows adding a unique admin_username to each admin user.

    Finally, after each user has a unique username, add the UNIQUE property back to the admin_username field.
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  3. #3
    Lurker
    Join Date
    Apr 2011
    Posts
    2
    Rep Power
    0


    Default Re: osCMax v2.0 RC3 migrate database to 2.0.25

    thank you for posting about this; i tried removing the "UNIQUE" from the sql and ran the upgrade script, but go this error:

    Error
    SQL query:

    #
    # MODIFY EXISTING TABLES
    #
    ALTER TABLE admin ADD admin_username varchar( 32 ) NOT NULL DEFAULT '' AFTER admin_groups_id,
    ADD admin_username(

    admin_username
    );

    MySQL said:

    #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(admin_username)' at line 6


    the osCmax_v2_5_RC1 /upgrade folder has four files:
    2.0.15_to_2.0.25.sql
    2.0.15_to_2.0.25_upgrade.php
    rc3_to_stable.sql
    upgrade.php

    do I need to run each one in turn to get up to 2.5 RC1 ? Didn't see an upgrade file for 2.0.25 to 2.5 RC1

    thank you again for any feedback

Similar Threads

  1. osCMax Cities database
    By Stuart038 in forum osCommerce 2.2 Installation Help
    Replies: 3
    Last Post: 06-15-2009, 06:47 AM
  2. osc 2.2 to oscmax database conversion
    By sstrycker in forum osCmax v2 Installation issues
    Replies: 1
    Last Post: 03-18-2007, 04:02 PM
  3. How to migrate subset of users from one install to another?
    By malcol27 in forum osCmax v1.7 Discussion
    Replies: 0
    Last Post: 08-06-2006, 10:23 PM
  4. How to migrate the OCSMAX web site to another server?
    By alphaque in forum osCmax v2 Installation issues
    Replies: 0
    Last Post: 10-26-2005, 02:46 AM
  5. How to migrate from oscommerce to osc max 1.7
    By dece in forum osCMax v1.7 Installation
    Replies: 1
    Last Post: 02-15-2005, 08:50 PM

Tags for this Thread

Bookmarks

Posting Permissions

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