Operating MYSQLl database

MySQL database operations


Databases and database objects
in general we say (DBMS) are references to the database server database (MySQL / Oracle, etc.)
database: a container store database objects.
Database objects: storage, management and use of different forms of data structures, such as: tables, views, stored procedures, functions, triggers, events.
Database in two ways:

Database system (the system comes with a database): can not be modified

INFORMATION_SCHEMA: a database storing information objects, such as: a user information table, column information, permissions, characters, and other information partition
performance_schema: performance parameter information stored in the database server.
mysql: database to store information about the user rights.
sys: system configuration information.

User database (database user-defined): In general, a project a user database.
Database operations command
(1) to view and select the database
to see which databases exist in the database server: SHOW DATABASES;
using the specified database: USE database_name;
see what data tables specified database has: SHOW TABLES;
(2) create and delete database
to create the specified the name of the database: CREATE dATABASE database_name;
delete the database: DROP dATABASE database_name;

Guess you like

Origin www.cnblogs.com/CWJDD/p/11106959.html