Results 1 to 6 of 6
  1. #1
    java19857 is offline Member
    Join Date
    Sep 2008
    Posts
    3
    Rep Power
    0

    Question How can we load database?

    Hi,

    I am new to java and I need your help.

    I want to load mysql database from flash drive into my local box. So, when I keep my flash drive my code should recognize file and start loading it. How can I achieve this?
    Pls help me.

    Thanks

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

  3. #3
    java19857 is offline Member
    Join Date
    Sep 2008
    Posts
    3
    Rep Power
    0

    Default

    No, I want to load the database from the script which is in my flash drive into local database. We are using MYSQL as our database. So, that i can create a batch such that when we click on that it immediately loads our database from our script.
    Is there a way for this either in java (using xml ) or mysql.

    Sorry for not being clear.
    Pls help me.

    Thanks

  4. #4
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    Seems to me you are worrying how to do within the flash drive. If so you try it and fail, and what error message you get?

  5. #5
    java19857 is offline Member
    Join Date
    Sep 2008
    Posts
    3
    Rep Power
    0

    Default

    What I want to do is ,load my database with the script in my flash drive. for this I want to write a code it can be in java or mysql but again I need to make it as a batch so that once we insert our flash drive and click on it, the database should get loaded with my new script.

  6. #6
    fishtoprecords's Avatar
    fishtoprecords is offline Senior Member
    Join Date
    Jun 2008
    Posts
    571
    Rep Power
    7

    Default

    Why do you think you need to use java?
    Have you looked at the standard scripting for Mysql?

    The basics of what you want to do are trivial. Making the user experience wonderful will take some effort.

Similar Threads

  1. Load URL that contains spaces?
    By barkster in forum Java Applets
    Replies: 0
    Last Post: 01-30-2008, 09:40 PM
  2. how to load a lot of files?
    By gabriel in forum Java Servlet
    Replies: 1
    Last Post: 08-07-2007, 06:04 PM
  3. how to load a html document
    By boy22 in forum Java Servlet
    Replies: 1
    Last Post: 08-05-2007, 04:12 AM
  4. Help with load image
    By trill in forum New To Java
    Replies: 1
    Last Post: 08-01-2007, 07:16 AM
  5. Load song according to its Genre
    By ahlai in forum AWT / Swing
    Replies: 1
    Last Post: 07-24-2007, 02:57 AM

Posting Permissions

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