Skip to content

Instantly share code, notes, and snippets.

@vinitkumar
Created August 5, 2012 15:27
Show Gist options
  • Save vinitkumar/3265397 to your computer and use it in GitHub Desktop.
Save vinitkumar/3265397 to your computer and use it in GitHub Desktop.
Insert a file into a MySQL db
~ mysql --local-infile -u username -p database
mysql > load data local infile '/home/vicky/a.txt' into table tablename;
To see the Data Stored:
mysql> select * from Writers;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment