|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
Urgent Help Needed
Hie thr,
I am new towards Java Servlet Programming. I am trying to make a connection to mySql database so that I could insert/update/retrieve/delete database. The problem is, I donnu how to make the connection. Is there any files that I should import before making the connection?what other procedures/statement/coding should I put in order to make the connection? Help is really needed. Thanks. Randy |
|
#2
|
|||
|
|||
|
This is the basis of it, you'll need to know the name of the MYSQL driver your host is using and change it accordingly.
You'll also need to know the URL of the database, this should also be available from your host. You can plug this into any Servlet or JSP Firstly import java.sql.*; into your program, along with whatever else your importing. PHP Code:
|
|
#3
|
|||
|
|||
|
do a search on JDBC and you'll get lots of examples and how-to's you need to load in JDBC driver, make a connection and execute the SQL.
Nick |
|
#4
|
|||
|
|||
|
hi.. i think you need MySQL JDBC driver ....
You can download it from www.worldserver.com/mm.mysql/
__________________
** Science belongs to the world ** |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Java Help > Urgent Help Needed |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|