I have little problem of my sql.

Discussion in 'MySQL' started by downloadsun.com, Nov 27, 2012.

  1. #1
    hi
    I have little problem of my sql.
    I want to transfer my website from one server to another server but when I try to importe the database file of my website. I foud there was limit only 50MB db file can be upload. while my db file size is near by 300MB now tell me how can I solve this problem.
     
    downloadsun.com, Nov 27, 2012 IP
  2. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #2
    Back the database up to a text file (.sql is easiest). Manually chop the file into <50MB pieces. Import them one at a time. (It's only 6-7 files, so that's faster than finding some program that will do it for you.)
     
    Rukbat, Nov 27, 2012 IP
  3. Zoti Media Group

    Zoti Media Group Notable Member

    Messages:
    1,599
    Likes Received:
    113
    Best Answers:
    2
    Trophy Points:
    265
    Digital Goods:
    2
    #3
    edit your php.ini parameters Change those lines: upload_max_filesize, post_max_size. Restart your vps/server and its done. If you are under hosting account contact your hosting provider.
     
    Zoti Media Group, Nov 27, 2012 IP
  4. VideoWhisper.com

    VideoWhisper.com Well-Known Member

    Messages:
    330
    Likes Received:
    6
    Best Answers:
    2
    Trophy Points:
    113
    Digital Goods:
    2
    #4
    Ask your hosting provider to do this for you. Most provide assistance with transfer. It's usually automated depending on hosting software (in example in WHM interface there's a feature to copy accounts from other servers by providing account credentials).

    Transfer can usually be done by doing a global backup on old host, transferring directly from server to server (very fast compared to regular home connections) and restoring backup on new host.

    You can also copy sql file with SSH and WGET http//..url-to-your.sql directly from that server if SSH is enabled, or ask your provider to do that for you.
     
    VideoWhisper.com, Nov 27, 2012 IP
  5. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #5
    Changing parms to allow larger uploads is nice, but when he exceeds MySQL's max filesize, none of that will do any good. Cutting the file up will solve it no matter how large the file gets. (If you already have the file on the server but it's too large for MySQL, Big Dump will load it.)
     
    Rukbat, Nov 27, 2012 IP
  6. downloadsun.com

    downloadsun.com Well-Known Member

    Messages:
    125
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    103
    #6
    thanks a lot all of you.
     
    downloadsun.com, Nov 30, 2012 IP
  7. slackersecurity

    slackersecurity Peon

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #7
    Use wget to download it from your server then import locally.
     
    slackersecurity, Dec 2, 2012 IP