• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to make Database Connection in Jsp using sql  RSS feed

 
yunuss khan
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

pls Help me to make connection with databas, As i m using sql-2000
with jsp.

Thanks in advance
yunus,
 
Sunesh Kumar
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Khan,

Class.forName("com.mysql.jdbc.Driver");
dbCon=DriverManager.getConnection("jdbc:mysql://localhost/delasopft?user=root&password=delasoft");

this may helps ..

you need a mysqlconnector jar file for connection download that from www.mysql.com

bye...
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!