Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 577 Bytes

README.md

File metadata and controls

19 lines (15 loc) · 577 Bytes

java-csv-to-mysql

Motivation

Needed a way to load more than 500,000 rows in a single CSV file (huge filesize of 60mb) into MySQL database. Scripted in Java to read each line of CSV file and insert into MySQL database in batches of 100 to speed things up.

Libraries used

Usage:

Compile: javac App.java

Run (make sure to have the jdbc.jar file in the same directory): java -cp .;jdbc.jar App