2

I want to create a DSN in Ubuntu Linux 10.10 for a Java application with a MySQL back end.

Sorry if the question is simple but I really need your help.

How can I create it? What are the drivers that are needed to install for the same?

joschi
  • 12,746
  • 4
  • 44
  • 50
Geetanjali
  • 1,043
  • 3
  • 13
  • 37

1 Answers1

1

JDBC is the way to go to get database connectivity in a Java application.

You'll need to install a JDBC driver for MySQL, e. g. Connector/J. Installation and usage of Connector/J is documented in the MySQL reference manual.

The format of a connection URL for Connector/J is specifically described in 20.3.4.1. Driver/Datasource Class Names, URL Syntax and Configuration Properties for Connector/J.

joschi
  • 12,746
  • 4
  • 44
  • 50