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.

About the author

Janaki( - 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

Leave a reply


Eye Test: * Time limit is exhausted. Please reload CAPTCHA.