How to connect MySql Database Using JSP

1. Create a database “sample” in your mysql. If you are using windows version of mysql then right click on schema tab as the following picture.

create database or schema in mysql

2.  Copy the mySqlConnector.jar in lib directory of your project.

3. Copy the following code to your jsp file.

0

About the author

Janaki(http://mjanaki.com) - A Software developer with 9+ years of experience in multiple technology projects across web, mobile, and cloud applications with expertise in PHP, C#, MySQL, Web services and open source platforms.

Similar Posts

Comments are closed.