Mysql general commands:
1.win+r
2. Enter cmd
3. Enter Mysql -u root -p
4. Enter the password
as the picture shows:
All database queries:
show databases; ==> show all databases
Query OK, 1 row affected (0.00 sec): Success is indicated
as the picture shows:
Create a database:
create datebase mydb2(库名)default character set utf8;
Display database creation statement:
show create database mydb2;
as the picture shows:
Database delete statement:
drop database demo1;
Modify database statements:
alter database emp default character set gbk(gbk字符集);
as the picture shows: