phpMyAdmin import/dump from url

Discussion in 'MySQL' started by maney, Apr 3, 2008.

  1. #1
    Is this possible? I'm trying to dump a 11mb file into sql, the problem is my internet is unreliable and it keeps failing. I have the file in question uploaded to my server, is there any way I can tell it to read the file on my server and dump from there? Its an sql file

    Thanks
     
    maney, Apr 3, 2008 IP
  2. D'Godown

    D'Godown Well-Known Member

    Messages:
    1,093
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    140
    #2
    yes a simple cron job will do this easily
     
    D'Godown, Apr 3, 2008 IP
  3. maney

    maney Active Member

    Messages:
    1,130
    Likes Received:
    36
    Best Answers:
    0
    Trophy Points:
    90
    #3
    Do you know the code I'd need for that on a linux server? All I want to do is import the database once (I'm installing a script that requires a database setting up).

    Cheers
     
    maney, Apr 3, 2008 IP
  4. jakomo

    jakomo Well-Known Member

    Messages:
    4,262
    Likes Received:
    82
    Best Answers:
    0
    Trophy Points:
    138
    #4
    jakomo, Apr 4, 2008 IP
  5. Mazaonline

    Mazaonline Peon

    Messages:
    1,006
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #5
    yah if u have ssh access on Your hosting account, Use this

    You will need the database username, password and database name.
    After you ssh into OLD server, type "mysqldump -u USER_NAME -p DB_NAME | gzip > FILE.sql.gz"
    Enter the database password when it asks. Then, usinf FTP or sFTP, copy the FILE.sql.gz file from the OLD server to the NEW server. (Presumably by copying it from OLD server to your PC and then to NEW server.)
    After you ssh into NEW server, type "gunzip < FILE.sql.gz | mysql -u USER_NAME -p DB_NAME"
    Enter the database password when it asks. When it is done, your database will be copied to the new server.


    or zip the files and Do you have Access to PhpMyAdmin? Most cpanel powered server has it. you can export the database from there.
     
    Mazaonline, Apr 4, 2008 IP