Giter Site home page Giter Site logo

savagearun / college-database-management-system Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aashayzanpure/college-database-management-system

0.0 0.0 0.0 932 KB

College Database system with 3 logins, viz. Admin, Faculty, and Student is made.

Java 83.48% TSQL 16.52%

college-database-management-system's Introduction

College Database System

This is a Java app which uses MySQL to manage core tasks in a college like viewing students' data, calculating GPA per semester, grading, checking scores per subject for faculties etc.

SQL concepts that are used:

  1. Basic operations: INSERT, UPDATE, DELETE, SELECT, JOIN
  2. Clauses: WHERE, AND, GROUP BY, HAVING etc
  3. Operations on tables: CREATE, ALTER, Foreign Key Constraints
  4. Triggers, Stored Procedures
  5. Indexes

Running the application

Set up the database

Note: You must have MySQL server and client installed on your PC.

Open the MySQL console, and create an empty database college_database. You can use the command create database college_database; use college_database;

Then run the command source <path-to-directory>/college_database.sql

This file contains the SQL commands to set up all the required tables with some sample data.

Compilation

cd into the src directory, and execute javac -d ../bin/ -cp .:../mysql-connector-java-5.1.38.jar Main.java

This will create a new bin directory where the class files will be generated. mysql-connector is the SQL JDBC client which is used to connect to the SQL server.

If you're on Windows, you might need to use javac -d ..\bin\ -cp .;..\mysql-connector-java-5.1.38.jar Main.java

Execution

cd into the bin directory, and execute java -cp .:../mysql-connector-java-5.1.38.jar Main

If you're on Windows, you might need to use java -cp .;..\mysql-connector-java-5.1.38.jar Main

Troubleshooting

  • If your get an access denied error, make sure the username and password for your MySQL server are correct. The default username is root and there is no password. You might need to change these values in Main.java. Or you can follow this tutorial.

college-database-management-system's People

Contributors

aashayzanpure avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.