MySQL database learning three MySQL database basic operations

Source: Internet
Author: User

3.1 Databases and Data objects

1. System Database

    • INFORMATION_SCHEMA: Some database object information in the primary storage system, such as user list information, column information, permission information, character set information and partition information.
    • Performance_schema: Primary Storage Database server performance parameters.
    • MySQL: User rights information for the primary storage system.
    • Test: The database is tested and can be used by any user.

2. User Database

A database object is a different form of structure that stores, manages, and uses data, mainly including tables, views, stored procedures, functions, triggers, and events.

3.2 Database-related operations

1. Create a database

Create Database database_name;

2. View and select a database

SHOW DATABASES;
Use database_name;

3. Deleting a database

DROP DATABASE database_name

MySQL database learning three MySQL database basic operations

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.