Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within JDBC and Relational Databases
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
paul wheaton
Jeanne Boyarsky
Ron McLeod
Sheriffs:
Paul Clapham
Liutauras Vilda
Devaka Cooray
Saloon Keepers:
Tim Holloway
Roland Mueller
Bartenders:
Forum:
JDBC and Relational Databases
Create DSN in Linux
ravisha andar
Ranch Hand
Posts: 55
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Yes you can create this DSN by modifying the odbc.ini file located in your home directory
Here is the Sample for you
[ODBC Data Sources] Bug = PostgreSQL [Bug] Debug = 1 CommLog = 1 ReadOnly = no Driver = /usr/local/lib/psqlodbc.so Servername = 64.xxx.xxx.xx FetchBufferSize = 99 Username = kevin Password = passwordforkevin Port = 5432 Database = bugdb [Default] Driver = /home/kst/tmp/libiodbc-3.0.5/odbcsdk/lib/oplodbc.so.1
Paul Clapham
Sheriff
Posts: 28371
99
I like...
posted 13 years ago
2
Number of slices to send:
Optional 'thank-you' note:
Send
Why would you want to do that? Wouldn't it be more practical to use the
JDBC
driver for MySQL?
Rob Spoor
Sheriff
Posts: 22821
132
I like...
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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 - OCEJPAD 6
How To Ask Questions
How To Answer Questions
Normally trees don't drive trucks. Does this tiny ad have a license?
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
basic FTP between a unix and linux machine
How to set up a DSN?
odbc.ini not found.how to create mine?
Connecting to a Database
"main" java.sql.SQLException: Access denied for user 'root'@'192.168.1.1' (using password: YES)
More...