Results 1 to 7 of 7

Thread: Backup and Restore

  1. #1
    tom.frankus is offline Junior Member
    Join Date
    Jul 2008
    Posts
    4

    Lightbulb Backup and Restore

    hi,
    i take backup of sugarcrm database using mysqldump (mysqldump -u root -ppassw0rd sugarcrm > sugarcrm.sql)
    Now when I restore it to another server using mysqldump (mysqldump -u root -ppassw0rd sugarcrm < sugarcrm.sql) I got the following error.

    [root@lnxserver bak]# mysqldump -u root -ppassw0rd test5 < 20080602-sugarcrm.sql
    -- MySQL dump 10.10
    --
    -- Host: localhost Database: test5
    -- ------------------------------------------------------
    -- Server version 5.0.27

    /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
    /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
    /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
    /*!40101 SET NAMES utf8 */;
    /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
    /*!40103 SET TIME_ZONE='+00:00' */;
    /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
    /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
    /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
    /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
    /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;

    /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
    /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
    /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
    /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
    /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
    /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
    /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

    -- Dump completed on 2008-07-06 1:54:11
    [root@lnxserver bak]#

    Please help me.

    Thanks,
    Tom Frankus

  2. #2
    bisana is offline Senior Member
    Join Date
    Jun 2008
    Location
    UAE
    Posts
    31

    Default Re: Backup and Restore

    Hi Tom
    mysqldump -u root -ppassw0rd test5 < 20080602-sugarcrm.sql
    Is the" test5" database exists in ur new server

    Thanks
    Joseph
    Joseph John
    ***Uses ***
    Sugar CRM Version 6.1.3 (Build 5640)

  3. #3
    tom.frankus is offline Junior Member
    Join Date
    Jul 2008
    Posts
    4

    Lightbulb Re: Backup and Restore

    yes, I create it in mysql as follow:
    mysql -u root -ppassw0rd
    create database test5;
    exit
    and then I tried the above mentioned mysqldump

    Thanks,
    Tom Frankus

  4. #4
    bisana is offline Senior Member
    Join Date
    Jun 2008
    Location
    UAE
    Posts
    31

    Default Re: Backup and Restore

    Hi Tom
    try this
    mysqldump -u root -ppassw0rd -D test5 < 20080602-sugarcrm.sql
    Thanks
    Joseph John
    ***Uses ***
    Sugar CRM Version 6.1.3 (Build 5640)

  5. #5
    tom.frankus is offline Junior Member
    Join Date
    Jul 2008
    Posts
    4

    Lightbulb Re: Backup and Restore

    Hi,

    I am getting the following error
    [root@lnxserver bak]# mysqldump -u root -ppassw0rd -D test5 < 20080602-sugarcrm.sql
    mysqldump: unknown option '-D'

    Thanks
    Tom Frankus

  6. #6
    bisana is offline Senior Member
    Join Date
    Jun 2008
    Location
    UAE
    Posts
    31

    Default Re: Backup and Restore

    Hi Tom
    Small correction instead of mysqldump please use mysql only

    mysql -u root -ppassw0rd -D test5 < 20080602-sugarcrm.sql
    I took back of a database now , then dropped it , then used mysql command
    " mysql -u root -psecret -D accountadmin < accountadmin.sql "
    and it worked fine for me
    I did check the database , I could see the tables being restored
    I tried and tested this in a PC with
    "MySQL Server version: 5.0.45-Debian_1ubuntu3.3-log Debian etch distribution"
    Thanks
    Joseph John
    ***Uses ***
    Sugar CRM Version 6.1.3 (Build 5640)

  7. #7
    tom.frankus is offline Junior Member
    Join Date
    Jul 2008
    Posts
    4

    Lightbulb Re: Backup and Restore

    Hi John,

    Yes, I got it. its working now. Thanks a lot John.

    Can u plz explain what this option stand for mysql -D

    Thanks,
    Tom

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Howto? Backup things not in database
    By SteveH in forum Help
    Replies: 9
    Last Post: 2007-05-12, 01:41 AM
  2. how to restore the sugarCRM backup???
    By sultan in forum Help
    Replies: 0
    Last Post: 2006-11-30, 10:38 AM
  3. Restore Backup made it with sugar
    By mariogamboa in forum Help
    Replies: 0
    Last Post: 2006-06-06, 03:20 AM
  4. How to restore a profile backup??
    By suli in forum Help
    Replies: 0
    Last Post: 2006-01-16, 01:00 PM
  5. Backup and Restore of SugarSuite DB
    By stevenwck in forum General Discussion
    Replies: 4
    Last Post: 2005-03-23, 09:52 PM

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
  •