MySQL Tutorial

MySQL Installation and Configuration

MySQL Database Operations

Database Design

MySQL Data Types

MySQL Storage Engines

MySQL Basic Operations of Tables

MySQL Constraints

MySQL Operators

MySQL Function

MySQL Manipulate Table Data

MySQL View

MySQL Indexes

MySQL Stored Procedure

MySQL Trigger

MySQL Transactions

MySQL Character Set

MySQL User Management

MySQL Database Backup and Recovery

MySQL Log

MySQL Performance Optimization

What's New in MySQL 5.7

Compared with MySQL 5.6, MySQL 5.7 has the following new features.

1) Random root password

After the MySQL 5.7 database is initialized, a root@localhost user will be automatically generated. The root user's password is not empty, but a random password.

2) Customize the test database

MySQL 5.7 does not have a test database after the default installation. Users can create the test database by themselves and control their permissions.

3) Default SSL encryption

MySQL 5.7 adopts a simpler SSL security access mechanism, and the default connection uses SSL encryption.

4) Password expiration policy

MySQL 5.7 supports users to set a password expiration policy, which requires users to change their passwords after a certain period of time.

5) User lock

MySQL 5.7 provides administrators with the ability to temporarily disable a user, preventing the locked user from accessing and using the database.

6) Full support for JSON

With the continuous growth of unstructured data storage requirements, various unstructured data storage databases have emerged (such as MongoDB), and major relational databases have not to be outdone, and have provided JSON support to cope with unstructured data. Database challenges.

MySQL 5.7 also provides support for JSON, providing a set of functions for manipulating JSON on the server side. The method of storage is to encode JSON into BLOB and then process it by the storage engine. In this way, MySQL has the advantages of relational database and non-relational database at the same time, and can provide complete transaction support.

7) Support two types of generated columns

A generated column is a column calculated from other columns in the database. When creating an index on a generated column, it can conveniently speed up queries. MySQL 5.7 supports virtual generated columns and stored generated columns. The virtual generated column only saves the data in the metadata of the table as the default generated column type; the storage generated column stores the data permanently on the disk, which requires more disk space.

8) Introduce system library (sys schema)

The system library contains a series of views, functions, and stored procedures that improve replication by more than 5 times through multi-threading, multi-process, combined transaction submission and row-based optimization. When users scale out their workloads across commodity systems, The efficiency and efficiency of replication can be greatly improved.