MySQL database library operations ---

  MySQL database to database, tables, records management of all forms of data, the library can contain multiple MySQL database installed on the server, a library contains more than one table, a table contains multiple records. Library association is the concept of file system folders, table corresponds to the concept paper of record is a specific need to save the data.

 

Library Operation

1. Create a library

create database test charset utf8;

  

2. View Gallery

show create database test;
select database();

 

3. Use Database

use test;

 

4. Modify Library: modify the library, the library is mainly modify the properties, such as the character encoding format library

alter database test charset utf8;

  

5. Delete Library

drop database test;

  

 

Guess you like

Origin www.cnblogs.com/chusiyong/p/11404612.html