How to connect Servlet with MySQL?
Posted by: Anis Shaikh
Date: March 28, 2006 03:46AM

i am using a MIDlet for user login,it connects to a servlet which queries the MySQL database and checks if the user is authenticated.

how can i connect servlets with MySQL database ??

i know to use them with MS Access
i.e
Class.forName("sun:Jdbc:Odbc:JdbcOdbcDriver");

How shall i do the same for MYSQL database???

Also i am using Java Web Server.What changes do i need to make in the java web server(what drivers to install and where to copy them!)to use MySQL?

Any sample codes??Plz

Options: ReplyQuote


Subject
Written By
Posted
How to connect Servlet with MySQL?
March 28, 2006 03:46AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.