Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Databases / December 2006

Tip: Looking for answers? Try searching our database.

Still need help

Thread view: 
debbienc - 03 Dec 2006 03:15 GMT
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.

Thanks so much,
Debbie
David Harper - 03 Dec 2006 08:24 GMT
> 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
Jeff - 03 Dec 2006 14:34 GMT
> > 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
[quoted text clipped - 28 lines]
> 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).
debbienc - 04 Dec 2006 02:30 GMT
I already have the book "Web Database Technologies" but can't
understand how they get it to work, cause mine don't.
> > > 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
[quoted text clipped - 32 lines]
> by Matthews, Cole, and Gradecki, from Wiley press (I have a copy, like
> it).
jcsnippets.atspace.com - 05 Dec 2006 13:14 GMT
> I already have the book "Web Database Technologies" but can't
> understand how they get it to work, cause mine don't.

Hi,

If you're having trouble connecting to a MySQL database, try the steps in
this document:
http://jcsnippets.atspace.com/java/database/connect-to-mysql-
database.html

It contains the steps needed to successfully connect, as well as sample
code.

Also, please try and post some of your code or efforts you've taken so
far, because it will be a lot easier for us to help you. "It does not
work" is very vague, so if we are able to see the error or problem for
ourselves, it will enable us to help you a lot faster.

Best regards,

JayCee
Signature

http://jcsnippets.atspace.com/
a collection of source code, tips and tricks



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.