0

Possible Duplicate:
How to connect MySQL to Java program

Hi I have some data that I would like to input into a MySQL server. However the data is being generated by a program I wrote in java. Is it possible to access and write to a MySQL server using java?

Community
  • 1
  • 1
DavyGravy
  • 311
  • 1
  • 4
  • 14
  • 2
    Anything is possible. You just have to write the code. :) – lc. Jan 29 '13 at 14:36
  • 1
    Yes it's possible and in fact much has been written about this including several well-written tutorials that you can easily find with Google. What have you found? What confuses you in particular? We do much better answering more specific questions, and we usually value evidence of effort made prior to asking a question. I suspect that most of the "answer" you will find here are not much more than Google substitutes, something you should really have done yourself. – Hovercraft Full Of Eels Jan 29 '13 at 14:36

4 Answers4

3

You can do this with JDBC. You will need to download the MySQL JDBC driver

3

Yes it is possible, if I was you I would check out mysql's own site where they also have a tutorial for all you need to know to get started http://dev.mysql.com/usingmysql/java/

morras
  • 1,102
  • 9
  • 24
2

Yes with JDBC instructions here

Neil Locketz
  • 4,228
  • 1
  • 23
  • 34
1

This should help you big time if you have no experience what so ever:

Installing MYSQL Connector/J JDBC on Microsoft Windows

and then follow the instructions from the JDBC tutorials.

Good luck!

Fer
  • 460
  • 2
  • 4
  • 17