[help] How to import database from url?

Discussion in 'PHP' started by jforinfo, Aug 6, 2009.

  1. #1
    Hi,

    I have mysql database uploaded on another host let's say www.myhost1.com/files-to-import.sql

    Is there anyway that I can use this files-to-import.sql to update mysql database on www.myhost2.com?

    Thanks
     
    jforinfo, Aug 6, 2009 IP
  2. premiumscripts

    premiumscripts Peon

    Messages:
    1,062
    Likes Received:
    48
    Best Answers:
    0
    Trophy Points:
    0
    #2
    If you have SSH access, just wget the file and then do the mysql import via the command line. Otherwise, why don't you just download it and then upload it to PHPmyadmin?
     
    premiumscripts, Aug 6, 2009 IP
  3. jforinfo

    jforinfo Peon

    Messages:
    58
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    yes i can just download it and upload it if only i have one site to manage.. But I have few sites to manage and the file is 20mb so download and upload it is a big problem for me. If I have to do it on 20 hosts that would be 800 mb to download and upload.

    Besides I don't know how to command on shared hosting.

    Is it possible to do copy image from url like photobucket do where we just have to insert the image url to copy.
     
    jforinfo, Aug 6, 2009 IP
  4. jforinfo

    jforinfo Peon

    Messages:
    58
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    i think this is going to be one hell of a job to do.. :(
     
    jforinfo, Aug 6, 2009 IP
  5. ht125

    ht125 Notable Member

    Messages:
    1,260
    Likes Received:
    69
    Best Answers:
    1
    Trophy Points:
    235
    #5
    if u have ftp access to where the sql is hosted, you can use http://www.net2ftp.com/ to import directly to the other host
     
    ht125, Aug 9, 2009 IP
  6. franklyn

    franklyn Peon

    Messages:
    26
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    franklyn, Aug 9, 2009 IP