


Detailed introduction to the new features of MySQL version 8.0
MySQL development team announces the release of MySQL 8.0.0 Development Milestone Release (DMR)! Afterwards, some people may wonder why MySQL jumped from 5.x to 8.0. In fact, the MySQL 5.x series has continued for many years, starting from 5.1 before being acquired by Oracle, and has remained at 5.x since the acquisition, such as 5.5, 5.6, 5.7 and so on. In fact, if you follow the original release rhythm, you can think of 5.6.x as 6.x and 5.7.x as 7.x. Therefore, we just changed the version naming method.
MySQL is the standard configuration in many website technology stacks. It is a popular open source database and has launched the first release candidate version of 8.0.
New features in MySQL 8.0 include:
Complete support for Unicode 9.0 out of the box
Support for window functions and recursive SQL syntax, which was not possible before Or it is difficult to write such query statements
Enhanced support for native JSON data and document storage capabilities
The release of MySQL 8.0, skipping multiple version numbers (starting from 5.5), Since the 6.0 modification and 7.0 are used to retain the cluster version of MySQL, the version number of 8.0 is adopted.
The expected release date of MySQL 8.0
According to MySQL's policy "the release cycle of a new [general] version is 18-24 months", MySQL has not committed to the release date of MySQL 8.0 . The last release of MySQL 5.7 was on October 21, 2015, so the official version of MySQL 8.0 may be released in October 2017.
The road to standardizing Unicode in MySQL 8.0
Default support for Unicode can be said to be one of the biggest changes in MySql 8.0. For a long time, MySQL has had many unresolved problems with Unicode. So, a long-term plan for MySQL 8.0 is to fix as many of those ongoing Unicode issues as possible.
MySQL 8.0 no longer sets latin1 as the default encoding to prevent new users from using this problematic legacy option. utf8mb4 is now recommended as the default character set for MySQL 8.0. It is intended to be faster than the now-deprecated utf8mb3 character set, while also enabling more flexible sorting and case sensitivity.
Enhanced Unicode not only supports non-Western character sets but also supports the growing emoji expressions.
MySQL 8.0 supports window functions
Many implementations of SQL language standards (such as Oracle, translator's note) support window functions, which can implement aggregation calculations across multiple rows and still Allows access to individual rows from the query. In previous MySQL versions, it was possible to do this without using window functions, but it was cumbersome and slow. In order to overcome this shortcoming, MySQL 8.0 implements the function of window functions through the standard SQL keyword OVER, which is somewhat similar to the implementation method of its competitor PostgreSQL.
Also another feature is recursive common table expressions, which allow you to perform recursive operations on subqueries without using cursors or other performance-degrading workarounds.
MySQL 8.0 better supports document databases and JSON
MySQL 5.7 supports JSON, which allows MySQL to use native JSON to compete with NoSQL databases. MySQL 8.0 has expanded support for JSON and has better performance, adding the ability to return ranges from JSON queries (just like the "top n" function of the SQL statement), and also adding new aggregate functions that can be used in the same query. In the statement, MySQL native structured data and JSON semi-structured data can be combined.
Another JSON-related improvement includes MySQL’s document storage. Reads and writes to the MySQL document store are transactionally consistent, allowing rollback of changes to JSON data. Document data is stored in the open GeoJSON format for geospatial data and can be indexed so it can be searched in a directed manner.
Other key features of MySQL 8.0
Other features planned for MySQL 8.0 updates include:
Added more options for locking rows, such as SKIP LOCKED and NOWAIT options. Among them,
SKIP LOCKED allows rows that need to be ignored not to be locked during the operation; NOWAIT immediately throws an error when a row lock is encountered.
MySQL can scale and expand based on the total amount of available memory to better utilize the deployment of virtual machines.
Added the "hidden index" feature so that the index can become invisible in the query optimizer. Indexes marked as unavailable are synchronized with table data changes, but the optimizer does not use them. The suggestion for using hidden indexes is that they can be used when it is not decided whether an index needs to be retained.
Now you can download MySQL 8.0 for Windows, MacOS, several versions of Linux, FreeBSD and Solaris; you can also download the source code. You can visit the developer candidate versions on the download page of the official website to download them.
The above is the detailed content of Detailed introduction to the new features of MySQL version 8.0. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics











The main role of MySQL in web applications is to store and manage data. 1.MySQL efficiently processes user information, product catalogs, transaction records and other data. 2. Through SQL query, developers can extract information from the database to generate dynamic content. 3.MySQL works based on the client-server model to ensure acceptable query speed.

Laravel is a PHP framework for easy building of web applications. It provides a range of powerful features including: Installation: Install the Laravel CLI globally with Composer and create applications in the project directory. Routing: Define the relationship between the URL and the handler in routes/web.php. View: Create a view in resources/views to render the application's interface. Database Integration: Provides out-of-the-box integration with databases such as MySQL and uses migration to create and modify tables. Model and Controller: The model represents the database entity and the controller processes HTTP requests.

The process of starting MySQL in Docker consists of the following steps: Pull the MySQL image to create and start the container, set the root user password, and map the port verification connection Create the database and the user grants all permissions to the database

MySQL and phpMyAdmin are powerful database management tools. 1) MySQL is used to create databases and tables, and to execute DML and SQL queries. 2) phpMyAdmin provides an intuitive interface for database management, table structure management, data operations and user permission management.

I encountered a tricky problem when developing a small application: the need to quickly integrate a lightweight database operation library. After trying multiple libraries, I found that they either have too much functionality or are not very compatible. Eventually, I found minii/db, a simplified version based on Yii2 that solved my problem perfectly.

Compared with other programming languages, MySQL is mainly used to store and manage data, while other languages such as Python, Java, and C are used for logical processing and application development. MySQL is known for its high performance, scalability and cross-platform support, suitable for data management needs, while other languages have advantages in their respective fields such as data analytics, enterprise applications, and system programming.

Article summary: This article provides detailed step-by-step instructions to guide readers on how to easily install the Laravel framework. Laravel is a powerful PHP framework that speeds up the development process of web applications. This tutorial covers the installation process from system requirements to configuring databases and setting up routing. By following these steps, readers can quickly and efficiently lay a solid foundation for their Laravel project.

The basic operations of MySQL include creating databases, tables, and using SQL to perform CRUD operations on data. 1. Create a database: CREATEDATABASEmy_first_db; 2. Create a table: CREATETABLEbooks(idINTAUTO_INCREMENTPRIMARYKEY, titleVARCHAR(100)NOTNULL, authorVARCHAR(100)NOTNULL, published_yearINT); 3. Insert data: INSERTINTObooks(title, author, published_year)VA
