• Post Reply Bookmark Topic Watch Topic
  • New Topic

Create DSN in Linux  RSS feed

 
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: 22215
38
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: 20968
84
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.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!