Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 3 of 3

This is a discussion on How do I insert data from remote computer in the Shared & Semi-Dedicated forum
I have lot of data on my remote computer and I want to insert it in to mySQL. What is the best method to do ...

  1. #1
    JPC Member
    Join Date
    May 2003
    Location
    Sweden
    Posts
    2

    How do I insert data from remote computer

    I have lot of data on my remote computer and I want to insert it in to mySQL.
    What is the best method to do it.

    One way is to write a java program that convert my data into embedded SQL and insert it. But the problem is I can't connect to host.

    Second way is to let the program convert
    it to a SQL file that I run in mySQL. The problem here is the size of that file.

    Any suggestion?

  2. #2
    Community Leader jason's Avatar
    Join Date
    Sep 2001
    Location
    Rochester, NY
    Posts
    6,003
    You can set up an "Access Host" in the CPanel that will give you the ability to connect to MySQL from your remote machine. Go to the "Add/Remove MySQL Databases" page of CP and down at the bottom you'll see the access host section. Enter your local IP address and you'll be able to connect from your machine.

    If you don't know your IP, go to (on Windows) Start > Run and type cmd. Then type "ipconfig" in the open box. Then at the command promt, type "ipconfig" and you should see your IP Address. On some windows versions you'll have to do Start > Run and then type "winipcfg" in the open box instead. On a Mac, just open your TCP/IP control panel and you should be able to see your IP address in there.

    Another option is to use your Java program to write out the SQL statements to a text file, upload it to the server, and then use SSH to insert the data from the command line. Like you said, the file may be large, but it will be the same amount of data as your program would be sending directly, so it will take just as long for the program to send everyting. This step may be easier because you won't have to configure the access host to make it work.

    --Jason
    Jason Pitoniak
    Interbrite Communications
    www.interbrite.com www.kodiakskorner.com

  3. #3
    JPC Member
    Join Date
    May 2003
    Location
    Sweden
    Posts
    2
    Thanks I will try it.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •