Skip to content

Instantly share code, notes, and snippets.

@sumanth232
Created February 11, 2015 17:40
Show Gist options
  • Save sumanth232/7bb8cc2db688bf6bf5a2 to your computer and use it in GitHub Desktop.
Save sumanth232/7bb8cc2db688bf6bf5a2 to your computer and use it in GitHub Desktop.
Some command used in my BTP
Importing a file into my local phpmyadmin
sumanth@harekrsna:~$ mysql --local-infile -h localhost -u root -p project
Enter password: asd
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 262
Server version: 5.5.40-0ubuntu0.14.04.1 (Ubuntu)
Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> load data local infile '/home/sumanth/btp/Algeria/friends2.txt' into table FriendsAlgeria fields terminated by ',' enclosed by '"' lines terminated by '\n';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment