• Post Reply Bookmark Topic Watch Topic
  • New Topic

Create DSN in Linux

 
ravisha andar
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 21973
36
Eclipse IDE Firefox Browser MySQL Database
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why would you want to do that? Wouldn't it be more practical to use the JDBC driver for MySQL?
 
Rob Spoor
Sheriff
Posts: 20831
68
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!