aspose file tools*
The moose likes JDBC and the fly likes Create DSN in Linux Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Create DSN in Linux" Watch "Create DSN in Linux" New topic

Create DSN in Linux

ravisha andar
Ranch Hand

Joined: Feb 25, 2011
Posts: 55
Hi All,

Is it possible to create a DSN for mysql server in LINUX/UNIX machine ?

Please help me with this.

Ifteqar Ald
Ranch Hand

Joined: Dec 26, 2011
Posts: 73
Yes you can create this DSN by modifying the odbc.ini file located in your home directory

Here is the Sample for you

Paul Clapham

Joined: Oct 14, 2005
Posts: 18152

Why would you want to do that? Wouldn't it be more practical to use the JDBC driver for MySQL?
Rob Spoor

Joined: Oct 27, 2005
Posts: 19556

DSN / ODBC is Microsoft's way of providing database abstraction. JDBC already does that for you. I agree with Paul, use JDBC to connect to the MySQL server directly.

How To Ask Questions How To Answer Questions
I agree. Here's the link:
subject: Create DSN in Linux
Similar Threads
problem connecting to access
Using DSN
Problem on JDBC -- help urgent
Connecting to database form servlets
Connectting to MS Access in Remote machine without DSN