Importing large database

Discussion in 'MySQL' started by MikeB67, Jul 19, 2008.

  1. #1
    I have a large database to import, I've tried bigdump but no success (duplicate error) Then I tried mysqldumper but always get a to many connections error about half way through. Is there any other way to do this? If I can do it via shell can someone give me a tutorial for direct admin?
     
    MikeB67, Jul 19, 2008 IP
  2. graformix

    graformix Member

    Messages:
    92
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #2
    take a look at the tools from dbconvert.com
     
    graformix, Jul 19, 2008 IP
  3. Alecoalec

    Alecoalec Member

    Messages:
    29
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #3
    Alecoalec, Jul 19, 2008 IP
  4. MikeB67

    MikeB67 Member

    Messages:
    575
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    35
    #4
    Haven't been able to get bigdump to work cause it stops on familar lines... :(
     
    MikeB67, Jul 19, 2008 IP
  5. Trusted Writer

    Trusted Writer Banned

    Messages:
    1,370
    Likes Received:
    52
    Best Answers:
    0
    Trophy Points:
    160
    #5
    Trusted Writer, Jul 19, 2008 IP
  6. JamesDoe

    JamesDoe Peon

    Messages:
    16
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I have used the EMS sql manager to import a 2 gig database to my provider as they did not give me shell access
     
    JamesDoe, Jul 19, 2008 IP
  7. spyrit

    spyrit Well-Known Member

    Messages:
    1,788
    Likes Received:
    94
    Best Answers:
    0
    Trophy Points:
    150
    #7
    in the control panel there is a backup button, go to backup and then choose restore database, that worked for me when everything failed.
     
    spyrit, Jul 22, 2008 IP
  8. fallen

    fallen Well-Known Member

    Messages:
    162
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    118
    #8
    Hi,

    for ~1GB database I have used:
    
    mysql -uuser_name -p database_name < mysqldump_backup.sql
    
    PHP:
    takes it's time but does the work.

    If you already have some data in the database, then you need either clear it, or write some scipt that checks for duplicates and eliminates them.
     
    fallen, Jul 23, 2008 IP
  9. hwmax

    hwmax Peon

    Messages:
    21
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #9
    This is what i've used in the past and has worked fine, may want to give it a go depending on the database size.
     
    hwmax, Jul 23, 2008 IP