Skip to content

Hoang993007/mysql-with-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Author: Nguyễn Minh Hoàng

In this project I will use Java 8.0, mySQL and JDBC to connect mySQL and Java to create a simple database for school.

#About files I have in this project

BakUp_sqlFile: I saved my export and import database files in .sql file here.

Package: I put all packages contain of .class files here.

Src: My source code, contain .java files.

used_package: it contain mysql-connector-java-8.0.17.jar package which is used for JDBC.

MakeFile: a make file I had made to run faster

#And another file Preserve File: I save some file that maybe I will need in the future

#How to run? @use terminal to run

~$ cd Src

~$ javac -d ../Package/ SQLPerforment.java CheckExists.java Menu.java Main.java QuanLyDiem.java QuanLyGiaoVien.java QuanLyLop.java QuanLyMonHoc.java QuanLySinhVien.java QuanTriHeThong.java DB_CHOOSE.java

~$ java -cp .:used_package/mysql-connector-java-8.0.17.jar:Package/ main.Main #Note that If you want to set multiple classpaths in java in linex, then you need to separate each CLASSPATH by a colon (:).

@OR I had made a make file here You just have to use terminal:

~$ make -f MakeFile

#Some knowledges I got while I made this project

@Clear terminal Screen (linux) System.out.print("\033[H\033[2J");

'H' means move to top of the screen

'2J' means "clear entire screen"

About

Connect Java with Mariadb by using JDBC

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published