Skip to content

Commit 620efb8

Browse files
authoredSep 17, 2024
Update README.md
1 parent 4e8b27b commit 620efb8

File tree

1 file changed

+19
-13
lines changed

1 file changed

+19
-13
lines changed
 

‎README.md

+19-13
Original file line numberDiff line numberDiff line change
@@ -31,20 +31,26 @@ The **Menu Driven Student Management System** is a Java CLI application develope
3131
1. **Clone the repository**:
3232
```bash
3333
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-
);
4734
```
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+
4854
3. **Update JDBC Configuration:** Modify the JDBC connection details in your Java code:
4955
```java
5056
String url = "jdbc:mysql://localhost:3306/StudentDB";

0 commit comments

Comments
 (0)
Please sign in to comment.