The basic operation command mysql

mysql --version version of the query 

set passwrod for username @ 'localhost' = password ( 'password'); set a password 

create database table; create database 

create table table (Field Name Type [constraint field]); Create table 

desc table name; see table structure 

drop table table name; delete the table 

drop database library name; delete library

  

Guess you like

Origin www.cnblogs.com/hcy-24/p/11606075.html