• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Connecting to ODBC sytem DSN

 
Ranch Hand
Posts: 541
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is it possible to connect to a database from command line using ODBC system DSN?

I have ODBC system DSN is ready but how can I connect through command line.
 
Bartender
Posts: 4116
72
Mac TypeScript Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Saurabh Pillai wrote:...I have ODBC system DSN is ready but how can I connect through command line.


What you meant by this? You want to connect through a Java program or...?
 
Saurabh Pillai
Ranch Hand
Posts: 541
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Vijitha Kumara wrote:What you meant by this? You want to connect through a Java program or...?


Nope.

You can connect to DB DIRECTLY from mysql console right? but I have ODBC system DSN ready. and I want to connect to db through dsn.

1) mysql console -> DB (Normal way)
2) mysql console -> system dsn -> DB

I want to connect through 2nd way.
 
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So... not through Java then? Your question is not about JDBC, but about the MySQL console?

I can't imagine why you would want to use ODBC when the MySQL console works perfectly well without it. Seems like a complete waste of time, both in figuring out how to do it and in having the communications go through extra processing when you do do it. But anyway since it's a question about MySQL and not JDBC, let's put it in the right forum.
 
reply
    Bookmark Topic Watch Topic
  • New Topic