English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
MySQL 开发团队于 12 日宣布 MySQL 8.0.0 开发里程碑版本(DMR)发布! 可能有人会惊奇 MySQL 为何从 5.x 直接跳到了 8.0。实际上,MySQL 5.x 系列已经延续了很多年,从被 Oracle 收购之前就是 5.1,而收购之后一直维持在 5.x,例如 5.5,5.6,5.7 等等。实际上,如果按照原本的发布节奏,可以把 5.6.x als 6.x,5.7.x als 7.x. Es ist also nur eine Änderung der Versionsbezeichnung.
Allerdings ist dieser Mal veröffentlichte MySQL 8.0.0 Es gibt immer noch viele Highlights in der Entwicklungsversion.
MySQL 8.0.0 Highlights
Transaktionsbasiertes Datenwort, vollständig vom MyISAM-Speichermodul getrennt
Das Datenwort wurde wirklich in einigen Tabellen von InnoDB untergebracht, seitdem sind FRM-, TRG-, PAR-Dateien nicht mehr erforderlich! Der Information Schema erscheint jetzt als Ansicht der Datenworttabellen. Prinzipiell kann der Typ MyISAM-Datenbanktabellen vollständig weggelassen werden, alle Systemtabellen können in InnoDB untergebracht werden.
SQL-Rollen
Rolle ist eine Sammlung von Berechtigungen. Rollen können erstellt werden und bestimmten Benutzern Berechtigungen und Rollen erteilt oder entfernt werden. Dies ist für die Berechtigungsverwaltung sehr bequem.
utf8mb4 Zeichensatz wird der Standardzeichensatz und unterstützt Unicode 9
Standard Zeichensatz wird von latin1 geändert8mb4,Standardordnungs Collation wird von latin1_swedish_ci in utf geändert8mb4_800_ci_ai。
Unsichtbare Indizes
Einige Indizes können als unsichtbar gesetzt werden, sodass der SQL-Optimierer sie nicht verwendet, aber sie werden im Hintergrund weiterhin aktualisiert. Wenn erforderlich, können sie jederzeit wieder sichtbar gemacht werden.
Bit-Operationen an binären Daten durchführen
nicht nur Bit-Operationen für BIGINT durchführen, sondern auch von 8.0 auch die Bit-Operationen für [VAR]BINARY/[TINYMEDIUMLONG]BLOB durchführen. Ab Version 0.0 unterstützt auch [VAR]BINARY
Verbesserungen bei IPv6 und die Operationen mit UUID
INET6_ATON () und INET6_NTOA () kann jetzt Bit-Operationen durchführen, da INET6_ATON () gibt jetzt VARBINARY (16Datentyp (128 Bit). Die UUID-Operationen wurden verbessert und drei neue Funktionen eingeführt: UUID_TO_BIN (), BIN_TO_UUID () und IS_UUID () . MySQL hat keine speziellen IPv6 und der UUID-Datentyp, sondern wird als VARBINARY (16gespeichert.
Persistente globale Variablen
persistente globale Variablen können mit SET PERSIST eingerichtet werden, die auch nach einem Neustart beibehalten werden.
Verbesserungen an der Performance-Datenbank Performance Schema
Zum Beispiel wurde für die Performance-Datenbank hinzugefügt 100 mehrere Indizes, die schneller durchsucht werden können.
Refactoring des SQL-Analyseurs
Continuierliche schrittweise Verbesserung des SQL-Analyseurs. Der alte Analyseur ist aufgrund seiner komplexen Grammatik und der top-down-Analyseweise stark eingeschränkt, was die Wartung und Erweiterung schwierig macht.
Cost Model
The InnoDB buffer pool can now estimate how many tables and indexes are in the main memory cache area, which allows the optimizer to know whether the data can be stored in memory or must be stored on disk when choosing the access method.
Histograms Histograms
By using histograms, users or DBAs can perform statistical analysis on data distribution, which can be used for query optimization to find optimized query solutions.
Improved scan performance
Improved the performance of InnoDB range queries, which can improve full table queries and range queries 5-20% performance.
Refactoring BLOB
Refactoring BLOB accelerates fragment reading/Update operation, which can accelerate the operation of JSON data.
Persistent Increment Value
InnoDB will persistently keep the maximum value of the auto-increment sequence in the redo log. This improvement also fixes a very old 199 bug number.
Temporary Tables
Cancel the support for compressed temporary tables and store the metadata of temporary tables in memory.
Other more important improvements and details, please refer to MySQL 8.0.0 Announce[1] and[2] .
download
Currently 8.0.0 Whether it is still a development version, if you want to experience and test the latest features, you can get from dev.mysql.com[3] Download installation packages for various platforms. However, the MySQL software package is getting bigger and bigger, and the binary package on the Linux platform is nearly 1 GB. If it is used in a product environment, in 8.0 Before entering the stable version, please continue to use 5.7 series, the latest version is 5.7.15 GA version - this is only 600 M more.
The latest source code is placed inGitHub Above, interested friends can go and have a look, among which there are many contributions from Chinese people.
[1]: http://dev.mysql.com/doc/relnotes/mysql/8.0/en/
[2]: http://mysqlserverteam.com/the-mysql-8-0-0-milestone-release-is-available/
[3]: http://dev.mysql.com/downloads/mysql/