Help importing large sql database

Discussion in 'MySQL' started by skywalkerph, Oct 30, 2008.

  1. #1
    I have 40MB sql, i cant import it using phpmyadmin.
    I try to use BigDump, but I encounter error, that bigdump stop at line 1 and it says "Congratulations: End of file reached, assuming OK"
    [​IMG]

    please help me. thanks

    skywalkerph
     
    skywalkerph, Oct 30, 2008 IP
  2. Boulder

    Boulder Well-Known Member

    Messages:
    806
    Likes Received:
    46
    Best Answers:
    0
    Trophy Points:
    118
    #2
    Looks like to me, the big dump utility worked just fine.. That is not really an error. That is what it looks like when it is done importing the database. And when it says "Congratulations: End of file reached, assuming OK" that means all went well..

    How or why do you think there is an error?

    Now you would just need to hook your script to that database, as the data should be in there.

    You can look at the tables in phpmyadmin and see the entries.

    Boulder
     
    Boulder, Oct 30, 2008 IP
  3. skywalkerph

    skywalkerph Well-Known Member

    Messages:
    636
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    110
    #3
    When I browse the website, it is blank :(
     
    skywalkerph, Oct 30, 2008 IP
  4. firmaterra

    firmaterra Peon

    Messages:
    756
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #4
    That doesn't mean the SQL import didn't work!

    Do you have PHP errors outputting to a LOG file somewhere? Check that.
    Have you checked the SQL settings on you're website?

    Make a simple file that doesn't connect to you're database, a HTML file and access that. Then try a php file (with no connection to the database). Finally make a phpfile with the connection settings, but no actual query etc. etc.
     
    firmaterra, Oct 30, 2008 IP
  5. penalty

    penalty Member

    Messages:
    36
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #5
    don't use phpmyadmin for that stuff. try to use a GUI like:
    http://www.navicat.com/detail.html

    with this one, you can import very large dumps. i use phpmyadmin for small db manipulations only.
     
    penalty, Oct 31, 2008 IP
  6. jestep

    jestep Prominent Member

    Messages:
    3,659
    Likes Received:
    215
    Best Answers:
    19
    Trophy Points:
    330
    #6
    I second navicat. If you administer a lot of databases it is indispensable. I can honestly say that we've saved hundreds if not thousands of hours over the years using this software. It has easily paid for itself a hundred times over.
     
    jestep, Oct 31, 2008 IP
  7. diligenthost

    diligenthost Peon

    Messages:
    685
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    0
    #7
    The best way to import a large SQL is through CLI. Do you have SSH access at your host? If not you can always ask your host to import it for you, they should be able to help out!
     
    diligenthost, Oct 31, 2008 IP
  8. naveenkumar

    naveenkumar Well-Known Member

    Messages:
    280
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    108
    #8
    I used BigDump for importing MySQL files of 100 to 200MB. Looking at the screenshot, it seems that BigDump imported the DB just fine. See the size of the DB. If it has just imported one line, it will show the DB size in KBs.
     
    naveenkumar, Oct 31, 2008 IP