Skip to content

A quick sh script to create a MySQL table from a CSV file with a header line.

Notifications You must be signed in to change notification settings

joshimedia/mysql_from_csv

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

mysql_from_csv

A quick sh script to create a MySQL table from a CSV file with a header line.

Create a MySQL table from the header of a CSV file. Makes everything a VARCHAR field.

You probably should not keep the user and pass in the args, this is a quick utility for data science work.

Usage: ./create_table.sh filename.csv db_name table_name user pass

@author: Joshua Rumbut [email protected]

About

A quick sh script to create a MySQL table from a CSV file with a header line.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%