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 Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Create DSN in Linux" Watch "Create DSN in Linux" New topic
Author

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.

Thanks
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
Bartender

Joined: Oct 14, 2005
Posts: 18662
    
    8

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

Joined: Oct 27, 2005
Posts: 19720
    
  20

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.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Create DSN in Linux