Getting started on the first day Mysql

 

### Mysql common commands

 

  1. See all current database

show databases;

  1. Open the specified library name

use the library name

  1. View current database of all the tables

show tables;

  1. See all other table library

Show tables from the library name;

  1. Create a table

Creat table table name (

           Ranked column type,

           Ranked column type,

           …

)

  1. View table structure

desc table name;

  1. View the current version of the database

the first method:

                             Dos command mysql -V or mysql --v

The second method:

                             Log in to mysql server select version ();

Guess you like

Origin www.cnblogs.com/point3/p/11946141.html