Operation of the 6-12mysql library

Source: Internet
Author: User
Tags naming convention

Various classifications of the 1,mysql library:

nformation_schema: Virtual Library, does not occupy disk space, storage is the database startup parameters, such as user table information, column information, permission information, character information and so on.
performance_schema: MySQL 5.5 has started to add a database: Mainly used to collect database server performance parameters, record the processing of query requests for various events, locks and other phenomena.
MySQL: Authorization library, the primary storage System user's permissions information.
Test: The database automatically created by the MySQL database system.

2, the various operations of the library:

Create library name CharSet UTF8;

SOS Grammar help CREATE database;

Naming conventions for databases:

   Can be used by letters, numbers, underscores, @, #, $ case-   sensitive   uniqueness   cannot use keywords such as create select   cannot use numbers up to   128 bits maximum  # It's basically the same as a python or JS naming convention.

3, the specific various operations:

Create Database db1; #查看所在的库 Select Database (); #选择数据库  Use Database name # Delete database DROP DATABASE database name; # Modify Database Alter database db1 charset UTF8;

4. Understanding Content

the SQL language is primarily used to access data, query data, update data, and manage relational database systems, which are developed by IBM. There are 3 types of SQL languages:1, DDL statements,    DROPALTER2, DML statement    database manipulation language: Inserting data Insert, Deleting data delete, updating data update, querying data Select3, DCL Statement    Database Control Language: For example, controlling access rights for users grant,REVOKE

  




















Operation of the 6-12mysql library

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.