Connection of JSP With MYSQL Database:
This article will shown the steps to connect to your application to database MYSQL.
Installation steps of XAMPP
After this next steps will be updated soon
This article will shown the steps to connect to your application to database MYSQL.
- First of all Install the XAMPP Server with link available according to your system version for Linux, Solaris, Windows, and Mac OS X,here: https://sourceforge.net/projects/xampp/
- XAMPP Server package contains Apache Tomcat web server,PHP ,MYSQL and phpMyAdmin.
- Install Netbeans IDE with the link available: https://netbeans.org/downloads/.
- Create a Database in MYSQL already embedded in XAMPP server .
- Select Register MYSQL Server under Databases by clicking on Services tab :
- Right click on Database and select Register MYSQL Server
- Click on Admin Properties :c:\xampp\mysql\bin\mysqladmin.exe\
- Path to Start command:c:\xampp\mysql\bin\mysqld.exe\
- Path to Stop command:c:\xampp\mysql\bin\mysqladmin.exe\
- argument: - u root stop
- Click OK.
- After the creation of database in MYSQL XAMPP server,then click refresh on MYSQL Services in NetBeans IDE.
- Right click on mydb(database name you have created in MYSQL) and select connect.
- Now you can see that the database has been successfully added here.
- Now the databse is ready to use for web application.
In NetBeans IDE do the following steps to create a project
Click on New File->Java Web ->Web Application->Project Name->Select Server Tomcat->OK
Right click on Web Application->New ->JSP file->
After this next steps will be updated soon
Comments
Post a Comment