Re: How to access a MySQL database from Java code?



azsx wrote:
Please help me learn how can I create a MySQl database and then
modify/update it with Java. Please give me some helpfull code...

There are plenty of books on JDBC programming. The O'Reilly title "Database programming with JDBC and Java" is a perfectly good one, with plenty of example code snippets and full working programs, which can also be downloaded from the O'Reilly web site.

As Ian Wilson has pointed out, the Sun tutorial on JDBC programming is available online, and that also contains many examples.

For MySQL-specific information, you should refer to the online documentation for Connector/J, the MySQL JDBC implementation:

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

David Harper
Cambridge, England
.