got problem import sql to dreamhost(large file)

Discussion in 'MySQL' started by aaheroe, Nov 28, 2007.

  1. #1
    hello

    can u help me,

    always got problem to move my database to dreamhost from servage

    try use shell : message cannot conect database server,


    via phpmadmin always corrupt

    file size 200 mb and 40mb if zip

    thx
     
    aaheroe, Nov 28, 2007 IP
  2. vnmmo

    vnmmo Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You can use bigdump.php attached below to import large file
     

    Attached Files:

    vnmmo, Nov 29, 2007 IP
  3. Pathan

    Pathan Well-Known Member

    Messages:
    2,196
    Likes Received:
    218
    Best Answers:
    0
    Trophy Points:
    165
    #3
    Make a fresh backup using SSH command
    mysqldump -udbusername -pdbpassword --dbname >filename.sql

    then move tht .sql file with wget command Using SSH
    wget http://ursite.com/filename.sql

    then extract tht sql file using SSH command
    mysql -uusername -ppassword -- username < file.sql

    If u have problem extracting the sql file simply ask your host they will do it easily.
     
    Pathan, Nov 30, 2007 IP
  4. InFloW

    InFloW Peon

    Messages:
    1,488
    Likes Received:
    39
    Best Answers:
    0
    Trophy Points:
    0
    #4
    That's good except for one thing. I would advise not putting the password in the command line. I would just put -p and it will prompt for a password which will be much safer.
     
    InFloW, Dec 1, 2007 IP