Is it normal to import 1.5g sql file and take 11+hours?

Discussion in 'Programming' started by Pinoguin, Feb 1, 2009.

  1. #1
    I am not sure if it is normal for this to take long... I understand it is a huge file 1g++ worth of data.

    I used :
        mysql> source myfilename.sql;  
    Code (markup):
    to import the database. It is taking like forever though... This is in wampp, I used the mysql.exe to import.
     
    Pinoguin, Feb 1, 2009 IP
  2. HostPersia

    HostPersia Peon

    Messages:
    6
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    i don't think so, ofcourse 1 GB is big but it doesn't take that long ( 11 hours )
     
    HostPersia, Feb 1, 2009 IP
  3. Pinoguin

    Pinoguin Peon

    Messages:
    848
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Oh I forgot to mention this is an sql.gz file, will that make a difference? (sorry the code above I copied from a tutorial)

    It should be

        mysql> source myfilename.sql.gz;
    Code (markup):
     
    Pinoguin, Feb 1, 2009 IP
  4. Colbyt

    Colbyt Notable Member

    Messages:
    3,224
    Likes Received:
    185
    Best Answers:
    0
    Trophy Points:
    210
    #4
    My guess is that it timed out about 10 hours and 50 minutes earlier and just got hung there.
     
    Colbyt, Feb 1, 2009 IP
  5. Pinoguin

    Pinoguin Peon

    Messages:
    848
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #5
    There is no error message or timeout message, just:
    "Query OK, 1 row affected <0.5 sec>"

    This message repeats over and over and over ... with varying secs of course.

    I don't understand why it won't stop, I've checked the size of the db and the records seem to increase, then decrease... and stops in that range then repeat. What is going on? Is it possible to loop like that?
     
    Pinoguin, Feb 1, 2009 IP
  6. ActiveFrost

    ActiveFrost Notable Member

    Messages:
    2,072
    Likes Received:
    63
    Best Answers:
    3
    Trophy Points:
    245
    #6
    Really depends on your server speed ! Th, yes - it's possible .. just watch out of "Timed out" msg :(
     
    ActiveFrost, Feb 1, 2009 IP
  7. Asus-Games

    Asus-Games Peon

    Messages:
    582
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #7
    It's not normal, since most sql files are under 1mb for most small - medium sites. The only way you'd have a gig (IMHO) would be if you owned a site like http://earn3.com/ or bigger. ( Probably Alot Bigger )
     
    Asus-Games, Feb 4, 2009 IP