Results 1 to 2 of 2

Thread: Mysql Database restore issues,

  1. #1
    ptemplin7 is offline Sugar Community Member
    Join Date
    Jun 2007
    Location
    Puget Sound Washington
    Posts
    380

    Default Mysql Database restore issues,

    I am trying to migrate from a production server to create a development box. I have gotten sugar files to update OK just need to restore the database. The original backup was an --all-databases backup. I went ahead and deleted out the the other databases.
    Tried mysqlimport and mysql as suggested elsewhere but no luck.
    Using phpMyAdmin tool I get the following error.

    -- MySQL dump 10.9
    --
    -- Host: localhost Database:
    -- ------------------------------------------------------
    -- Server version 4.1.20
    /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;

    MySQL said: Documentation
    #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 '' at line 1

    I assume its complaining about the /* stuff. The sql file was create using mysqldump

    Any ideas?

    Using Sugarcrm 4.5.1a, Trixbox 2.0, Linux Cent OS4.4, Apache webserver PHP 4.3.11

    Thanks Paris

  2. #2
    ptemplin7 is offline Sugar Community Member
    Join Date
    Jun 2007
    Location
    Puget Sound Washington
    Posts
    380

    Lightbulb Re: Mysql Database restore issues,

    OK my bad. I think I have this figured out!

    Forgot to make sure I had used dos2unix to convert the file! Thus stripping out all those nasty LF characters.

    On a seperate note:

    What do you all prefer to use: mysqldump --all-databases or mysqldump sugarcrm along with the various other options?

    Thanks for reading,
    Paris

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. step 3 installation problem
    By voitek in forum Installation and Upgrade Help
    Replies: 10
    Last Post: 2007-02-14, 04:35 PM
  4. Sugar 401 install and remote MySQL database
    By cosjef in forum General Discussion
    Replies: 5
    Last Post: 2006-03-09, 08:52 AM
  5. RESOLVED: Using a remote MySQL database with SugarCRM
    By cosjef in forum General Discussion
    Replies: 0
    Last Post: 2006-02-04, 05:35 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
  •