File tree 1 file changed +19
-13
lines changed
1 file changed +19
-13
lines changed Original file line number Diff line number Diff line change @@ -31,20 +31,26 @@ The **Menu Driven Student Management System** is a Java CLI application develope
31
31
1 . ** Clone the repository** :
32
32
``` bash
33
33
git clone https://github.com/yourusername/MenuDrivenStudentManagement-JDBC.git
34
- 2. ** Configure the Database:** Run the following SQL commands in MySQL:
35
- ` ` ` sql
36
- CREATE DATABASE StudentDB;
37
-
38
- USE StudentDB;
39
-
40
- CREATE TABLE students (
41
- id INT PRIMARY KEY AUTO_INCREMENT,
42
- name VARCHAR(100),
43
- age INT,
44
- sgpa DOUBLE,
45
- phone_number VARCHAR(15)
46
- );
47
34
```
35
+ 2 . ** Configure the Database:** Run the following SQL commands in MySQL:
36
+
37
+ ``` sql
38
+ -- Create the StudentDB database
39
+ CREATE DATABASE StudentDB ;
40
+
41
+ -- Select the StudentDB database for use
42
+ USE StudentDB;
43
+
44
+ -- Create the students table
45
+ CREATE TABLE students (
46
+ id INT PRIMARY KEY AUTO_INCREMENT,
47
+ name VARCHAR (100 ),
48
+ age INT ,
49
+ sgpa DOUBLE,
50
+ phone_number VARCHAR (15 )
51
+ );
52
+ ```
53
+
48
54
3 . ** Update JDBC Configuration:** Modify the JDBC connection details in your Java code:
49
55
``` java
50
56
String url = " jdbc:mysql://localhost:3306/StudentDB" ;
You can’t perform that action at this time.
0 commit comments