An import data
1, log on to MySQL, the instruction: mysql -u username -p password; such as: mysql -uroot -p111;
show databases;: 2, which databases, see the instructions there
3, create your own library of command: create database table name; such as: create database aaa;
4, using the database command: use the table name; described: use AAA;
5, view the current database which tables, instructions: show tables;
6, initialization data path source database. When inside SQL data is too large to open, use the source command to complete initialization
Second, other instructions
1, delete the database: drop database table name; such as: drop database aaa;
2, see the table structure: desc name; such as: desc emp;
3, view the data in the table: select * from table name; described: select * from EMP;
4, to see what databases currently in use: select database ();
5, view the current version of the database, select version ();
6, a termination statement: \ c
7, exit statement: exit, quit, \ q