Geetanjali
Geetanjali

Reputation: 1043

How to Create DSN in ubuntu

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?

Upvotes: 2

Views: 1280

Answers (1)

joschi
joschi

Reputation: 13101

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.

Upvotes: 1

Related Questions