1.First You should connect your java ide with JDBC(Java Database Connectivity) Here the full reference of How to connect JDBC with MY SQL : https://www.javatpoint.com/example-to-connect-to-the-mysql-database
2.you should create a database with name of "project" using MYSql.
- create a table "CMS " in project database.Below given Syntax of MYSql.
create table CMS(
name varchar(40),
mob varchar(40),
addr varchar(40),
gender varchar(40),
dob varchar(40),
primary key(name,mob)
);
- create a table "guest" in project database.Below given Syntax of MYSql.
create table guest( name varchar(40), mob varchar(40), primary key(name,mob) );
- create a table "request" in project database.Below given Syntax of MYSql.
create table request( name varchar(40), mob varchar(40), table_number int, requirement varchar(50), primary key(name,mob)
);
Connection con=DriverManager.getConnection( "jdbc:mysql://localhost:3306/project","root","ambesh");
*where you change root with your username and ambesh with password of you MYSQL .
*In the code you should change this line of code with this
By default username is already root.
OUTPUT :
if click Admin First You get Login Page then After SuccessFull Login You can See All List of Members,Guest ,And request List of Either Guests or Members of Coffee tea and many more (In project username="Admin" && password="admin" :
If Click on New Member .You get a Registration Form .After Successfully Registration.Your data is saved in database and you see a message of Successflly Registerd.
If You Already a Member then You click on "Login As Member". After Click First You should login using Name and Mobile Number(primary Key in database)then You get Three option (Chat with Others,request for a tea or coffee,Dowload Files from Server).
If Click on Chat with other You should enter port number ,computerId and IP Address then you connect Server .This is multiClient Server chat.
If click on request for cofee or tea then Admin get notified and also can see manual rquest list of coffee .In order list contains Your name ,mobile number,quantity,requirement thing
If CLick on "Download Files from Server" then you are able to download file of different different type from Server.
If Click on Guest login .Then you first you enter the your name and mobile number and then you able to use all functionalities use by a Member(No require to fill registration form ). you time and pay are different from a Member.
📝If Liked Give Star ⭐⭐⭐to repo📝
Made with ❤️ .