mySql Database dump question.

Discussion in 'MySQL' started by nate_king1, Jun 23, 2006.

  1. #1
    I have a sql file of over 300MB on my server. How exactly do I get these tables to my mysql database. I cannot manually do it through phpmyadmin as it times out every time I try.

    Thank You.
     
    nate_king1, Jun 23, 2006 IP
  2. ajayr

    ajayr Active Member

    Messages:
    322
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    58
    #2
    If you have SSH or telnet access to your server you can try this:

    $ mysql -u username -D dbname -p < sqlfile.sql
     
    ajayr, Jun 23, 2006 IP
  3. nate_king1

    nate_king1 Active Member

    Messages:
    951
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    70
    #3
    No Access to telnet or ssh
     
    nate_king1, Jun 23, 2006 IP
  4. ajayr

    ajayr Active Member

    Messages:
    322
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    58
    #4
    You can try the script here: http://www.ozerov.de/bigdump.php
    Another (laborious) method would be to split your SQL file into several smaller files and then import each one of them using phpmyadmin.
     
    ajayr, Jun 23, 2006 IP
  5. GeorgeB.

    GeorgeB. Notable Member

    Messages:
    5,695
    Likes Received:
    288
    Best Answers:
    0
    Trophy Points:
    280
    #5
    Do you have cpanel??

    If so simply click on the "backups" button and download your mysql database in a tar file. If you have cpanel on the new server you can use it to upload that same backup file.
     
    GeorgeB., Jun 23, 2006 IP
  6. nate_king1

    nate_king1 Active Member

    Messages:
    951
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    70
    #6
    I just tried the BigDump and it says it cannot read the file size. :(
     
    nate_king1, Jun 23, 2006 IP
  7. nate_king1

    nate_king1 Active Member

    Messages:
    951
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    70
    #7
    Anybod know of another dump script?
     
    nate_king1, Jun 25, 2006 IP
  8. dre

    dre Peon

    Messages:
    1,367
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Big dump is your best bet:) just upload the sql file to ur server then config big dump and run it! Pm me if you need any help
     
    dre, Jun 25, 2006 IP
  9. iconv

    iconv Well-Known Member

    Messages:
    189
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    108
    #9
    If you can access the mysql server remotely (ask your host) you can run mysql from your pc with $ mysql -h <myhost> -u username -D dbname -p < sqlfile.sql
     
    iconv, Jun 25, 2006 IP
  10. mike30

    mike30 Well-Known Member

    Messages:
    887
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    140
    #10
    Go to: http://dev.mysql.com/downloads/gui-tools/5.0.html
    and download: MySQL Administrator

    You can make backups and restore your sql files.
    If you need some help, just let me know

    Thanks...:)
    Mike30
     
    mike30, Jul 19, 2008 IP