Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to connect MySQL database in Java

 
Vishal Hegde
Ranch Hand
Posts: 1077
Java Windows
  • 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: 20511
54
Chrome Eclipse IDE Java Windows
  • 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
  • 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
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic