Re: Still need help




David Harper wrote:
debbienc wrote:
This is not working. What I need is to know how to connect java with
MySQL, and how to connect to a plain text document. Can anyone help me
with this.

You might find it helpful to read a couple of books:

"Learning Java"

http://www.oreilly.com/catalog/learnjava2/

"Database Programming with JDBC & Java"

http://www.oreilly.com/catalog/jdbc2/index.html

The first book contains plenty of examples of Java techniques, such as
opening a file and reading it a line at a time.

The second book focusses on database programming with Java.

You should then read the documentation about Connector/J, the JDBC
library for MySQL:

http://dev.mysql.com/doc/refman/4.1/en/connector-j.html

This provides advice about how to obtain and install the latest version
of Connector/J, and examples showing how to connect to MySQL and send
commands and queries to the MySQL server.

Good luck with your project.

David Harper
Cambridge, England

And specific to this case is the book "MySQL and Java Developers Guide"
by Matthews, Cole, and Gradecki, from Wiley press (I have a copy, like
it).

.



Relevant Pages

  • Re: Java and MySql program example ?
    ... > I am trying to learn Java and need an example program with MySql ... > MySql database. ... Database connection established ...
    (comp.lang.java.programmer)
  • Re: mysql vs sqlite vs hsql
    ... My question isabout benchmarks and multiple inserts & ... > I current have a mysql database of approx. ... lemme dispell the very common misconception that java is slow. ...
    (comp.lang.python)
  • Re: A question for Java+MySQL Developers
    ... your distributed Java application connect to the MySQL server? ... Communications link failure". ... I tried to follow guidance about connecting mysql from remote hosts, ... search for mysql bugs about connector/j, manipulate my.cnf file, ...
    (comp.lang.java.programmer)
  • Re: JDBC Fedora 4.0, Java and Apache
    ... MySql is working and tested. ... Put the Connector/J in your classpath ... Specify the correct driver classname in the java source where the ...
    (comp.lang.java.databases)
  • Re: [SLE] schemaSpy
    ... >>> java ... >> page and modified it for MySQL and my local setup, ... >> any queries on behalf of schemaSpy (ascertained by logging in to ...
    (SuSE)