This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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: 18541

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: 19654

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
Don't get me started about those stupid light bulbs.
subject: Create DSN in Linux
Similar Threads
Connectting to MS Access in Remote machine without DSN
problem connecting to access
Using DSN
Problem on JDBC -- help urgent
Connecting to database form servlets