DB transfer, HELP!

Discussion in 'MySQL' started by alexs464, Apr 18, 2009.

  1. #1
    Hello, folks!

    I need some help with transferring DB form one host to another.

    So on the old host, I backed up the databases of my 5 sites, and it gave me one .sql file.

    Now, on the new host I crated 5 databases and need to restore the old DB. But now I am confused since I have 5 different data bases and only one .sql file,
    how do I do it?
     
    alexs464, Apr 18, 2009 IP
  2. HQ Content

    HQ Content Peon

    Messages:
    290
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    If you're still needing assistance with your database transfer, I'd be happy to do it for you. Please contact me via pm to discuss.

    Thanks!
     
    HQ Content, Apr 18, 2009 IP
  3. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310
    #3
    maybe u were using one databese for all your sites thats why u got 1 databese
     
    Bohra, Apr 18, 2009 IP
  4. nayes84

    nayes84 Member

    Messages:
    34
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #4
    I guess not all of your websites are using database. may be some are using text files to store data or something.
    anyway I guess just go ahead and import the sql file into a database and see which one works and which doesn't
     
    nayes84, Apr 19, 2009 IP
  5. Kaoz

    Kaoz Peon

    Messages:
    767
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Unsuccessful transfer? Use bigdump to make it into fragments for a smoother transfer.
     
    Kaoz, Apr 19, 2009 IP
  6. alexs464

    alexs464 Well-Known Member

    Messages:
    1,357
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    125
    #6
    After reading through lots of materials I was even more confused.
    I contacted Hostgator and they did everything for me free of charge :)

    Problem solved!
     
    alexs464, Apr 19, 2009 IP
  7. fubaba

    fubaba Member

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #7
    i usually in this way
    dump every db in a separate .sql file with mysqldump
    then create on a new server db with correspondent name and just use mysql < yourdumpfile.sql

    dont forget to put necessary parameters for mysql to connect.
    this is for shell in unix/linux systems
     
    fubaba, Apr 23, 2009 IP
  8. MayurGondaliya

    MayurGondaliya Well-Known Member

    Messages:
    1,233
    Likes Received:
    38
    Best Answers:
    0
    Trophy Points:
    170
    #8
    Why do you import/export database using phpmyadmin or mysql administrator? It is very easy to do this using these applications.
     
    MayurGondaliya, Apr 23, 2009 IP
  9. pipes

    pipes Prominent Member

    Messages:
    12,766
    Likes Received:
    958
    Best Answers:
    0
    Trophy Points:
    360
    #9
    Did they give you any hint at all of what they did?
     
    pipes, Apr 30, 2009 IP
  10. T.Guru

    T.Guru Peon

    Messages:
    78
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #10
    The reason why your database was being saved in one sql file is that you had several website on one database. So a solution would have been to get that file and make several.
     
    T.Guru, May 12, 2009 IP
  11. sunnyverma1984

    sunnyverma1984 Well-Known Member

    Messages:
    342
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    120
    #11
    sunnyverma1984, May 13, 2009 IP