Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 27

Thread: [MySQL] MySQL Database setup recommendation for best results.

  1. #11
    omarfilip's Avatar
    omarfilip is offline Nearly a Master Glow Jedi
    Join Date
    Jan 2008
    Location
    Dallas, TX
    Posts
    127

    Default

    Should I keep PuTTY's connection alive by doing something like dir from time to time?

  2. #12
    omarfilip's Avatar
    omarfilip is offline Nearly a Master Glow Jedi
    Join Date
    Jan 2008
    Location
    Dallas, TX
    Posts
    127

    Default

    Ok, the popup window says:

    PuTTY Fatal Error
    Network error: Software caused connection abort.
    I started the import at 10:58 and it timed out at 11:08, so it seems to run for 10 minutes, then quits.

  3. #13
    omarfilip's Avatar
    omarfilip is offline Nearly a Master Glow Jedi
    Join Date
    Jan 2008
    Location
    Dallas, TX
    Posts
    127

    Default

    I'll try another import, this time I've used connect_timeout=9999 before using the mysql command. Not sure if this is the proper syntax, but I didn't get a bad command warning.

  4. #14
    omarfilip's Avatar
    omarfilip is offline Nearly a Master Glow Jedi
    Join Date
    Jan 2008
    Location
    Dallas, TX
    Posts
    127

    Default

    Still no luck. Same error after 10 minutes. Any suggestions?

  5. #15
    sergey is offline Master Glow Jedi
    Join Date
    Aug 2005
    Posts
    472

    Default

    It was not the SQL error message. Putty SSH client gave the timout error message. I would recommend you to create a screen and run the command in screen. You can create a screen using the following command:

    Code:
    screen -S SCREEN_NAME
    where SCREEN_NAME is a name of your screen

    Then run the command to import your SQL file:

    Code:
    mysql DB_NAME < DB_NAME.sql
    Close the screen with help of Ctrl+A, then Ctrl+D. When the command is run in screen it will never be killed even if you close the SSH window.

    You can open a screen again with help of the following command:

    Code:
    screen -r SCREEN_NAME

  6. #16
    omarfilip's Avatar
    omarfilip is offline Nearly a Master Glow Jedi
    Join Date
    Jan 2008
    Location
    Dallas, TX
    Posts
    127

    Default

    Ok, I have it going again. We'll see in about 10 minutes or so.
    Last edited by omarfilip; 01-30-2008 at 11:53 PM.

  7. #17
    omarfilip's Avatar
    omarfilip is offline Nearly a Master Glow Jedi
    Join Date
    Jan 2008
    Location
    Dallas, TX
    Posts
    127

    Default

    Didn't work. Same message after 10 minutes again.

  8. #18
    omarfilip's Avatar
    omarfilip is offline Nearly a Master Glow Jedi
    Join Date
    Jan 2008
    Location
    Dallas, TX
    Posts
    127

    Default

    Well, I take that back - it's still going. Much slower than the first few tries, but still growing the DB. I will report in a little while.

  9. #19
    omarfilip's Avatar
    omarfilip is offline Nearly a Master Glow Jedi
    Join Date
    Jan 2008
    Location
    Dallas, TX
    Posts
    127

    Default

    It's done! But it took forever.
    2.5 hours for 130MB.
    Is there a reason why the performance was so slow?
    Last edited by omarfilip; 01-31-2008 at 02:39 AM.

  10. #20
    Matt's Avatar
    Matt is online now GlowHost Administrator
    Join Date
    Jan 2005
    Location
    Behind your monitor
    Posts
    5,971

    Default

    Call your ISP and ask if they require keepalive connections for SSH.

    I had issues using Adelphia cable when I subscribed to their service and I had to specifically enable keepalive in putty.

    In my putty version it is located at Connection > Seconds Between Keepalives.

    Basically your SSH client will send a packet to the server and back. I don't know why some ISP require this, it is a waste of time and packets, but try it out and it might be your fix.
    Send your friends and site visitors to GlowHost and get $125 plus bonus!
    GlowHost Affiliate Program | Read our Blog | Follow us on X |

Page 2 of 3 FirstFirst 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14