Results 1 to 6 of 6

Thread: Install 5.x against copied MySQL DB possible?

  1. #1
    gpatus is offline Junior Member
    Join Date
    Mar 2008
    Posts
    4

    Default Install 5.x against copied MySQL DB possible?

    I have SugarCRM 4.5.4h with MySQL 4.4.10a all works ok on openSUSE 9.x. I have setup a new server with the same hardware but a newer distro of openSUSE 10.3. It has MySQL 5.0.45 as of now. I have run all the software updates from the online repositories.

    The next step is to install the latest SugarCRM download. I do not know the history of MySQL enough to know if I could just copy the MySQL directory to the new directory before the Sugar install. I'm sure it will not be that easy.

    I would like to know how to do this transfer if possible.

    George.

  2. #2
    Angel's Avatar
    Angel is offline Sugar Community Member
    Join Date
    Jul 2005
    Location
    Los Angeles
    Posts
    4,813

    Default Re: Install 5.x against copied MySQL DB possible?

    You'll need to perform a database repair using a MySQL utility such as phpMyAdmin or SQLyog.

    Give this article a look as well: http://dev.mysql.com/doc/refman/5.0/en/upgrade.html

    I am assuming you've made about 10 backups in advance too.

    BTW, that would only address the point on the MySQL database, not the point about you moving from Sugar 4.5 to Sugar 5.0. I would try to upgrade the system to 5.0 once it is operational on the new server.
    Regards,

    Angel Magaña
    Co-Author: Implementing SugarCRM 5.x (Packt Publishing -- Sept. 2010)
    Blog: http://cheleguanaco.blogspot.com.
    Twitter: @cheleguanaco.

    ________
    | Projects: |_____________________________________
    |
    | CandyWrapper (.NET Wrapper for SugarCRM SOAP API). Source now available on GitHub!
    | GoldMine to SugarCRM Express Conversion. Latest: 1.0.1.7 (Nov. 3, 2009)
    | CRM SkyDialer (Skype Integration). Latest: 1.0.2 (Feb. 17, 2010)
    | Round Robin Leads Assignment
    | Phone Number Formatter
    | CaseTwit (Twitter Integration)
    ______________________________________________

  3. #3
    gpatus is offline Junior Member
    Join Date
    Mar 2008
    Posts
    4

    Default Re: Install 5.x against copied MySQL DB possible?

    10 is a good number. I'm going to have to take some time to learn how to do a MySQL for bare metal recovery. Second a data set recovery would be a good idea too. I'll visit the MySQL site for the details. I have to say that I'm installing this onto a new server to the original is being left in working condition.

    Now based on your response it sounded like you were suggesting setting up a blank new 4.5.1h on the new server using the new MySQL The next step would be to copy the old MySQL 4.4.10a DB to the new server in place of the new blank MySQL 5.0.45 just created by the 4.5.1h install. Then run a MySQL repair. This would result in a working 4.5.1h with the old DB updated.

    Then when I confirm the 4.5.1h is working I should run the 5.x upgrade for a final result.

    I'm not so sure about this procedure as I've read some Help items about problems doing upgrades from 4.5.1 to 5.x. I was hoping that I could do the 5.x install and then copy the 4.5.1h DB over the 5.x. The question becomes what is the upgrade routines for coverting 4.5.1h to a 5.x DB?

    George.

  4. #4
    gpatus is offline Junior Member
    Join Date
    Mar 2008
    Posts
    4

    Default Re: Install 5.x against copied MySQL DB possible?

    Angel,

    Quote Originally Posted by Angel
    You'll need to perform a database repair using a MySQL utility such as phpMyAdmin or SQLyog.

    Give this article a look as well: http://dev.mysql.com/doc/refman/5.0/en/upgrade.html

    I am assuming you've made about 10 backups in advance too.

    BTW, that would only address the point on the MySQL database, not the point about you moving from Sugar 4.5 to Sugar 5.0. I would try to upgrade the system to 5.0 once it is operational on the new server.
    I have read the article you referenced in your reply. Those articles discuss changes from 4.1 to 5.0 to 5.1. My reading suggests to me there are incompatible changes to the underlying MySQL table structures. MySQL promises not to make large changes but some have occured.

    I've come to understand there have been changes to SugarCRM's table layouts between versions. That implies the need to export the tables as a series of so called dump files that can build tables. Once a new versions of SugarCRM and MySQL are installed the dump files from the old MySQL version are used, imported, to build the tables for the new version.

    Given that information I left thinking about what happens when I install SugarCRM version 4.5.1h on the new server using the latest MySQL 5.0.45. How will the table structure be transferred or will it work with the newer MySQL?


    George.
    Last edited by gpatus; 2008-03-04 at 02:24 PM.

  5. #5
    Angel's Avatar
    Angel is offline Sugar Community Member
    Join Date
    Jul 2005
    Location
    Los Angeles
    Posts
    4,813

    Default Re: Install 5.x against copied MySQL DB possible?

    Quote Originally Posted by gpatus
    Angel,
    Given that information I left thinking about what happens when I install SugarCRM version 4.5.1h on the new server using the latest MySQL 5.0.45. How will the table structure be transferred or will it work with the newer MySQL?


    George.
    Perhaps this will help answer some of your questions...

    If I had to do this, I would first try this approach:

    1. Install Sugar 4.5.1 on MySQL 5.x on new server and verify that it is operating normally.
    2. Copy the old Sugar DB from the old server over to the new MySQL server.
    3. Run a database repair via a MySQL admin utility on the new server for the old Sugar DB.
    4. Access Sugar 4.5.1 on new server to make sure things are still operational and run repair operations through Sugar.
    5. Upgrade Sugar to 5.0

    It is possible that step 3 would require some additional work beyond running the repair, but this would be my initial series of steps.
    Regards,

    Angel Magaña
    Co-Author: Implementing SugarCRM 5.x (Packt Publishing -- Sept. 2010)
    Blog: http://cheleguanaco.blogspot.com.
    Twitter: @cheleguanaco.

    ________
    | Projects: |_____________________________________
    |
    | CandyWrapper (.NET Wrapper for SugarCRM SOAP API). Source now available on GitHub!
    | GoldMine to SugarCRM Express Conversion. Latest: 1.0.1.7 (Nov. 3, 2009)
    | CRM SkyDialer (Skype Integration). Latest: 1.0.2 (Feb. 17, 2010)
    | Round Robin Leads Assignment
    | Phone Number Formatter
    | CaseTwit (Twitter Integration)
    ______________________________________________

  6. #6
    gpatus is offline Junior Member
    Join Date
    Mar 2008
    Posts
    4

    Default Re: Install 5.x against copied MySQL DB possible?

    Quote Originally Posted by Angel
    Perhaps this will help answer some of your questions...

    If I had to do this, I would first try this approach:

    1. Install Sugar 4.5.1 on MySQL 5.x on new server and verify that it is operating normally.
    2. Copy the old Sugar DB from the old server over to the new MySQL server.
    3. Run a database repair via a MySQL admin utility on the new server for the old Sugar DB.
    4. Access Sugar 4.5.1 on new server to make sure things are still operational and run repair operations through Sugar.
    5. Upgrade Sugar to 5.0

    It is possible that step 3 would require some additional work beyond running the repair, but this would be my initial series of steps.
    I'll do the steps and report my results. Other items will pull me away from this new server setup for a few days. I will write a response when I know the outcome.

    George.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. MySQL Database Not Available
    By luisamato in forum Help
    Replies: 4
    Last Post: 2007-06-27, 05:58 AM
  2. Huge backups -- normal?
    By Liam in forum Help
    Replies: 5
    Last Post: 2007-05-02, 05:36 AM
  3. Replies: 11
    Last Post: 2006-12-20, 09:46 PM
  4. Replies: 3
    Last Post: 2006-03-20, 12:10 AM
  5. Sugar 401 install and remote MySQL database
    By cosjef in forum General Discussion
    Replies: 5
    Last Post: 2006-03-09, 08:52 AM

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
  •