This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to connect MySQL database in Java

 
Vishal Hegde
Ranch Hand
Posts: 1077
Java Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to connect MySQL database in Java


How to create DSN also for MySQL in Windows XP(Control Panel>>Administrative Tools>>DataSources(ODBC))
 
Rob Spoor
Sheriff
Pie
Posts: 20388
46
Chrome Eclipse IDE Java Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
mysql java tutorial
mysql dsn
Both searches give good results at the top of the page.
 
Vishal Hegde
Ranch Hand
Posts: 1077
Java Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Rob,

I got this , just one concern there is no need to go to control Panel Datasources and set a DSN Name right?
 
Deepak Rao
Ranch Hand
Posts: 35
Eclipse IDE Firefox Browser
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Vishal,

Not really required. Depends on how you want to access it.
If you want to use sun's jdbcodbcDriver then you need to set the DSN.
You can also connect without setting DSN using com.mysql.jdbc.Driver .

Thanks
Deepak
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic