MySQL Versions

Versioning is a process of categorizing either unique version names or numbers to the unique set of software program as it is developed and released. The commonly used version name for denoting the initial release of a software or program is version 1.0. There is no industry standard rule available that decide how version number should be formatted. Thus, each company has its own methods for assigning the version name to the software. When the new features in software and programs have introduced, fixes bugs, patched security holes, then version number increased that indicates those improvements.

The latest support for working with MySQL is version number v5.8. It contains many essential changes, including new features added and removed, fixed bugs and security issues, etc. This version contains the release history from MySQL 8.0 to MySQL 8.0.21. It is available from April 2018 and ends the support in April 2026.

When you are going to install MySQL in your system, you must have to choose the version and distribution format to use. You can install MySQL in two ways, where first is a development release, and the second is General Availability (GA) release. The development release provides the newest feature and is not recommended to use in production. The General Availability (GA) release, also known as production or stable release, is mainly used for production. Therefore, you must have to decide the most recent General Availability release.

Let us see what is new in MySQL 8.0 version.

Features Added in MySQL 8.0

The following features are added in MySQL 8.0 version:

Data Dictionary: It incorporates the transactional data dictionary to stores information about the database objects. Previous versions stored data in metadata files and non-transactional tables.

Atomic DDL Statement: It is an Atomic Data Definition Language statement that combines storage engine operations, data dictionary updates, and binary log associated with a DDL operation into a single atomic transaction.

Upgrade Procedures: Previously, the installation of the new MySQL version automatically upgrade the data dictionary table at the next startup, and then DBA is expected to invoke mysql_upgrade command manually for completing the upgrading process. After MySQL 8.0.16, it is not dependent on the DBA to invoke mysql_upgrade command for completing the up-gradation process.

Security and account management: There is some enhancement added to improve the security and provide it to enable greater DBA flexibility in account management.

Resource Management: Now, MySQL allows you to create and support resource groups, assign threads to a particular group so that it can execute according to the resource available for the group. Group attributes can control its resource consumption by threads in the group.

Table Encryption Management: Now, table encryption is managed globally by defining and enforcing encryption defaults. The default_table_encryption variable or DEFAULT ENCRYPTION clause defines encryption default when creating a schema and general tablespace.

InnoDB enhancements: The InnoDB enhancement were added in auto-increment counter, index tree corruption, memcached plugin, InnoDB_deadlock_detect, tablespace encryption feature, storage engine, InnoDB_dedicated_server, zlib library, and many more.

Character Set Support: The default character set now changed from latin1 to utf8mb4. The new character set has many new collations, including utf8mb_ja_0900_as_cs.

JSON Enhancements: The following enhancements or additions are introduced in the MySQL’s json functionality: Inline path (->>) operator, json aggregate functions JSON_ARRAYAGG() and JSON_OBJECTAGG(), utility function JSON_PRETTY(), JSON_STORAGE_SIZE()(, JSON_STORAGE_FREE(). In sorting json values, now each value is represented by variable-length part of sort key instead of a fixed 1K size. It also added merge function JSON_MERGE_PATCH to add 2 json object and JSON_TABLE() function.

Data Type Support: In data type specifications, it can support the use of expressions as default values.

Optimizer Enhancement: This version added optimizer enhancement such as invisible indexes, descending indexes, support the creation of a functional index. It can use constant folding for comparison between a column and a constant value.

Window Function: This version supports many new window functions such as RANK(), LAG(), and NTILE().

Some other important features are:

  • It enhances Regular expression support.
  • Error Logging re-written to use MySQL component architecture.
  • A new backup lock introduced that permits DML while preventing an operation, which can result in an inconsistent state.
  • It enhances connection management. Now, TCP/IP port can be configured specifically for administrative connections. It gives more control in compression to minimize the bytes sent over the connection to the server.
  • In previous versions, the plugins were written in C or C++. Now, it must be written in only the C++ language. MySQL 8.0.17 version provides clone plugins, which permit InnoDB data locally or from a remote server. The clone plugin also supports replication.
  • In this version, the time zone support for TIMESTAMP and DATETIME values.
  • This version also added the SQL standard table value constructor and explicit table clause.

Features Deprecated in MySQL 8.0

The MySQL 8.0 version has deprecated many features and can be removed in the future series. Some of the features are explained below:

  • The character set utf8mb3 is deprecated.
  • The sha256_password is deprecated and removed in future versions. Now, the default authentication will be caching_sha2_password.
  • The validate_password plugin will be deprecated soon and can be removed in future versions.
  • The ENGINE clause will be deprecated for the ALTER TABLESPACE and DROP TABLESPACE.
  • AUTO_INCREMENT and UNSIGNED attribute are deprecated for FLOAT and DOUBLE column type.
  • Now, it uses JSON_MERGE_PRESERVE() function instead of JSON_MERGE().
  • The SQL_CALC_FOUND_ROWS modifier, FOUND_ROWS() function, --no--dd--upgrade server option, mysql_upgrade client, and mysql_upgrade_info are also deprecated.
  • The use of MYSQL_PWD environment variable, which specifies the MYSQL password, is deprecated now.

Features Removed in MySQL 8.0

available, your application needs to be updated.

  • The InnoDB_locks_unsafe_for_binlog system variable was removed, information_schema_stats variable is replaced by information_schema_stats_expiry.
  • Some features related to the account management were removed, which are: GRANT statement for creating user, PASSWORD() function, old_passwords system variable, etc.
  • The code related to the InnoDB system table is obsolete and was removed from the MySQL 8.0 version. The INFORMATION_SCHEMA view which is based on InnoDB system table now replaced by internal system view and renamed as:
Old Name New Name
INNODB_SYS_COLUMNS INNODB_COLUMNS
INNODB_SYS_DATAFILES INNODB_DATAFILES
INNODB_SYS_FIELDS INNODB_FIELDS
INNODB_SYS_FOREIGN INNODB_FOREIGN
INNODB_SYS_FOREIGN_COLS INNODB_FOREIGN_COLS
INNODB_SYS_INDEXES INNODB_INDEXES
INNODB_SYS_TABLES INNODB_TABLES
INNODB_SYS_TABLESPACES INNODB_TABLESPACES
INNODB_SYS_TABLESTATS INNODB_TABLESTATS
INNODB_SYS_VIRTUAL INNODB_VIRTUAL
  • This version also removed some query catch, which is FLUSH QUERY CACHE, RESET QUERY CACHE statement, SQL_CACHE SELECT modifier, etc.
  • The sync_frm system variable is removed because of the .frm files become obsolete.
  • The multi_range_count, log_warning, and global scope for the sql_log_bin system variable have been removed.
  • Some of the encryption-related items such as ENCODE(), DECODE(), ENCRYPT(), etc. have also removed.
  • It removed mysql_install_db program is removed, and instead if this it uses --initialize or --initialize_insecure option.

Let us understand the release history of previous versions of MySQL through the following table:

Version Name Released Date End of Support Description
MySQL 5.1 14-11-2008 December 2013 This version contains the releases of MySQL 5.0 to MySQL 5.1.73 versions. To read about the first version of MySQL, click here.
MySQL 5.5 03-12-2010 December 2018 This version contains the releases of MySQL 5.5 to MySQL 5.5.62 versions.
MySQL 5.6 05-02-2013 February 2021 This version contains the releases of MySQL 5.6 to MySQL 5.5.45 versions.
MySQL 5.7 21-10-2015 October 2023 This version contains the releases of MySQL 5.7 to MySQL 5.6.27 versions.
MySQL 8.0 19-04-2018 April 2026 This version contains the releases of MySQL 8.0 to MySQL 8.0.21 versions.
Note
Note: Version 6 has stopped working after the Sun Microsystems acquisition, and now it uses MySQL Cluster product versions 7 and 8.
Related Tutorial
Follow Us
https://www.facebook.com/Rookie-Nerd-638990322793530 https://twitter.com/RookieNerdTutor https://plus.google.com/b/117136517396468545840 #
Contents +