MySQL 8.0.3 is about to be released, let’s take a look at what new changes there are
MySQL 8.0.3 is about to release the RC version, which indicates that the 8.0 version is closer to GA It's getting closer.
Let’s share some important new features and changes in version 8.0.3:
DirectlyAbolish query cache(should just If you close the entrance and compile the source code yourself, you can enable it again)
The query optimizer supports using theSET_VARHINT syntax to modify certain session-level parameters directly in SQL. Options, such as:
- SELECT /*+ SET_VAR(sort_buffer_size = 16M) */ name FROM people ORDER BY name;
- INSERT /*+ SET_VAR(foreign_key_checks=OFF) */ INTO t2 VALUES(2);
(This function is super practical. It can be modified directly in SQL. You don’t have to write another SQL and worry about affecting others)
The query optimizer now supports storing the histogram of each column's statistical results in thecolumn_statisticsdata dictionary in order to construct the execution plan. With this histogram, it can be used to compare the column and the constant.
New flag bits in the query optimizeruse_invisible_indexesare used to control the execution of the construction Whether to consider the factor of invisible indexes when planning
InnoDB has added a newbackup-specific lock. In the past, if the InnoDB table was online hot standby and DML was performed at the same time, it might cause The snapshots of InnoDB files are inconsistent. With this backup lock, you don't have to worry. The backup lock usage isLOCK INSTANCE FOR BACKUP, UNLOCK INSTANCE, which requiresBACKUP_ADMINpermission
InnoDB now supports the atomicity oftable DDL, that is, DDL on the InnoDB table can also achieve transaction integrity, either failed and rolled back, or successfully submitted, without There is a partial success problem when DDL occurs. In addition,supports the crash-safe feature(this feature is very praised)
If it is delayed initialization group replication (GR, Group Replication ), that is, in single-primary mode, data can be written to the secondary node through the asynchronous replication channel, which is not allowed during normal initialization of the group replication plug-in (Bug #26314756, this is an internal BUG ID, we cannot see it Yes, don’t bother. But there is also the universal github, you can also see the relevant description, see: https://github.com/mysql/mysql-server/commit/acbf1d13ecd1d89557f8ca62116f06e8633dc90d)
Several views such asFILES, PARTITIONS, REFERENTIAL_CONSTRAINTSin the system library INFORMATION_SCHEMA have been re-implemented (this is not too specific, it may have something to do with all DDL being put into InnoDB, no longer Use FRM files to store DDL information)
Due to the transformation of the foreign key constraint lock function, the column renaming function on the parent table involving foreign key constraints will be temporarily disabled for a period of time (estimated in a few days) A small version can be used normally)
InnoDB general table space has new renaming syntax:ALTER TABLESPACE ... RENAME TO(As a MySQL DBA, it seems like nothing People who play with general table spaces may be more accustomed to using it after transferring from Oracle DBA)
On the slave node replicated by MySQL, thelog_slave_updatesoption default value is changed to ON ( This is also more practical, making it easier to use the slave directly as a relay node) The global scope of the
optionsql_log_binis changed to a session-level scope, that is Modifying this option only affects this session and no longer affects the global situation (this option is generally used at the session level)
Optionmax_allowed_packetThe default value is increased from 4M to 64M (This seems to be more practical)
Optionevent_schedulerThe default value is changed from OFF to ON, so that the event scheduler function is enabled by default (I think the event function is quite good) , but it seems that not many people use event)
Optionmax_error_countThe default value has been increased from 64 to 1024 (I don’t feel it)
Last one, the utf8mb4 character set adds a Russian check set (newly added utf8mb4_ru_0900_ai_ci, utf8mb4_ru_0900_as_cs two collations sets)
Let’s look forward to the release of 8.0.3!
The above is the detailed content of New changes released in MySQL8.0.3 RC version. For more information, please follow other related articles on the PHP Chinese website!