SSH help

Discussion in 'Site & Server Administration' started by Googles76, Dec 19, 2005.

  1. #1
    I'm trying to upload a large databse just under 10mb but phpmyadmin is getting timeout error. I've been told by support that SSH is enabled on my server. So can someone give a step by step guide how to use SSH? Which client do I need and what command I have to use to upload my sql file into the database.

    Thanks.
     
    Googles76, Dec 19, 2005 IP
  2. forkqueue

    forkqueue Guest

    Messages:
    401
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Your best bet is to upload via sftp or scp and then import from the command line:

    
    $ mysql -u root -p mydatabase < mydatabasefile.db
    
    Code (markup):
    If you're running Windows (bleh) there are ssh/scp/sftp clients here.
     
    forkqueue, Dec 19, 2005 IP
  3. Googles76

    Googles76 Peon

    Messages:
    664
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks.

    I also found another solution that worked. I used this program SQL Dumpfile Splitter to split the databse into parts of 1mb(it allows you to choose the file sizes) and then uploaded it via phpmyadmin one part at a time. It sure is slower but it works:)
     
    Googles76, Dec 19, 2005 IP
  4. Cybernaut

    Cybernaut Peon

    Messages:
    408
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #4
    You got an easier solution :)
     
    Cybernaut, Dec 19, 2005 IP