Aptitude (12) ASP.NET (2) Automata (4) Browser (1) C (5) C# (1) C++ (10) Code (3) CSS (1) Data Structure (1) DATABASE (3) HTML (1) java (43) JSP (1) math (1) MySql (8) other (6) php (3) Servlet (3)

Wednesday, 1 February 2012

A very simple way for connecting MySQL

  • Make a lib names folder inside WEB-INF folder of your project.
  • Go to Download This MySQL connector  .JAR file    and download it.
  • Place the above downloaded jar file inside the lib folder which is created in step 1.
  • now place your servlet's classes file into classes folder.
  • place web.xml file of your project into WEB-INF folder.
  • Run tomcate and enter your project's running URL.
  • Process completed.



No comments:

Post a Comment