The world`s most popular open-source relational database management system

MySQL for Mac

Join our mailing list

Stay up to date with latest software releases, news, software discounts, deals and more.

Download MySQL 5.7.20

MySQL 5.7.20

  -  339 MB  -  Open Source
  • Latest Version

    MySQL 8.0.34

  • Operating System

    macOS 10.12 Sierra or later

  • User Rating

    Click to vote
  • Author / Product

    Oracle / External Link

  • Filename


Sometimes latest versions of the software can cause issues when installed on older devices or devices running an older version of the operating system. Software makers usually fix these issues but it can take them some time. What you can do in the meantime is to download and install an older version of MySQL 5.7.20.

For those interested in downloading the most recent release of MySQL for Mac or reading our review, simply click here.

All old versions distributed on our website are completely virus-free and available for download at no cost.

We would love to hear from you

If you have any questions or ideas that you want to share with us - head over to our Contact page and let us know. We value your feedback!

  • MySQL 5.7.20 Screenshots

    The images below have been resized. Click on them to view the screenshots in full size.

What's new in this version:

- Event-matching filter rules for the audit_log plugin now support an abort element, which can be used to prevent qualifying events from executing. For more information, see Audit Log Filtering. This capability can be used, for example, to augment the capabilities of MySQL Enterprise Firewall, which blocks SQL statements on a per-user basis, by writing audit filtering rules that match statements and block them based on characteristics of the statements themselves

- Previously, the --transaction-isolation and --transaction-read-only server startup options corresponded to the tx_isolation and tx_read_only system variables. For better name correspondence between startup option and system variable names, transaction_isolation and transaction_read_only have been created as aliases for tx_isolation and tx_read_only. The tx_isolation and tx_read_only variables are now deprecated and will be removed in MySQL 8.0. Applications should be adjusted to use transaction_isolation and transaction_read_only instead
- The query cache is now deprecated and is removed in MySQL 8.0.The mysql client by default strips comments in statements sent to the server, and this behavior is controlled using --skip-comments (strip comments), and --comments (preserve comments)
- Comment stripping is now deprecated. This feature and the options to control it will be removed in a future MySQL release
- These syntax constructs for table and column references are now deprecated and will be removed in a future version of MySQL. Instances of these constructs should be changed to remove the leading period

- For platforms that use systemd (see Managing MySQL Server with systemd), the data directory is initialized if empty at server startup. This might be a problem if the data directory is a remote mount that has temporarily disappeared: The mount point would appear to be an empty data directory, which then would be initialized as a new data directory. It is now possible to suppress this automatic initialization behavior

- mysqlcheck was missing in the MySQL Server Docker image, which prevented mysql_upgrade from running

- Certificates automatically generated by mysqld and mysql_ssl_rsa_setup now use X509 v3 rather than v1
- The keyring_okv plugin now supports password-protecting the key file used for secure connections. See Using the keyring_okv KMIP Plugin

- A Mysqlx.Connection.CapabilitiesGet request using MySQL X Protocol did not return the complete list of available authentication mechanisms
- For mixed case or uppercase schema names, the statement list_objects could incorrectly report a collection as a table
- The X Plugin was omitted from the list of plugins to include for testing data directory permissions

- Replication: In previous versions issuing STOP GROUP_REPLICATION stopped the plugin but the server still accepted transactions. This meant the transactions were not transmitted to the group. To make STOP GROUP_REPLICATION safer, now super_read_only is set to ON immediately upon issuing STOP GROUP_REPLICATION, which ensures no transactions are accepted
- Replication: The group_replication_member_weight variable has been added which enables you to control the election of new primaries in single-primary mode. In previous versions primary election was based on the member's UUID, with the lowest UUID elected as the new primary in the event of fail over. Use this variable to assign numeric weights to members to ensure that specific members are elected, for example during scheduled maintenance of the primary or to ensure certain hardware is prioritised

- InnoDB: Invalid error handling code was removed from a function related to tablespace import
- InnoDB: A check for discarded partitions during a DML operation only checked the first partition. Failure to check for other discarded partitions caused an assertion failure
- InnoDB: Replication lag occurred on slave instances during large update operations on tables with many partitions
- InnoDB: A failure occurred during an end range comparison
- InnoDB: Enabling the innodb_buffer_pool_load_now setting failed in readonly mode. The event that signals the buffer pool load thread was not initialized
- InnoDB: Test-related code intended to simulate a random read on a non-existent page raised an invalid assertion
- References: This issue is a regression of: Bug #25053705
- InnoDB: A long wait for a dictionary operation lock held by a full-text search synchronization operation caused a server exit
- Partitioning: In certain cases when fetching heap records a partition ID could be set to zero
- Partitioning: Queries involving NULL were not always handled correctly on tables that were partitioned by LIST
- References: See also: Bug #86255, Bug #26034430
- Replication: MySQL internal administration commands that update replication-specific repository tables, for example during a replication synchronization check using the mysqlrplsync utility, can now bypass read locks. This enables such commands to execute regardless of the settings for the read_only and super_read_only system variables and the autocommit mode
- Replication: When the Group Replication plugin Delayed_initialization_thread failed to start due to unavailable resources, a locked mutex was being kept behind which would cause issues on Delayed_initialization_thread destructor. The fix ensures that the mutex is unlocked when the thread fails to start
- Replication: If hostname resolution was not working for a member in Group Replication, the error returned when attempting to connect was referring to credentials. The error message has been improved to describe the problem with hostname resolution
- Replication: If the options file contained Group Replication related settings the server could stop unexpectedly on start up
- Replication: FLUSH LOGS attempted to send an OK message after having already sent an error response during the commit phase
- Replication: With some workloads that contained large inserts, the XCOM transaction cache could consume a large amount of memory. The fix limits the size of the cache to reduce the impact to memory usage
- Replication: Group Replication partition threads were not visible in the Performance Schema tables
- Replication: COUNT_TRANSACTIONS_REMOTE_IN_APPLIER_QUEUE was set to an incorrect value when group_replication_recovery_complete_at="transactions_certified" on a recovering member
- Replication: The values of the group_replication_recovery_use_ssl and group_replication_recovery_ssl_verify_server_cert variables were not being updated when configured for the Group Replication recovery channel
- Replication: When replicating a partitioned table with an index, on a replication slave where HASH_SCAN was specified as part of the slave_rows_search_algorithms setting, the slave I/O thread sometimes stopped with an error HA_ERR_KEY_NOT_FOUND
- Replication: group_replication_force_members could be used in situations where the group was working properly, in other words a majority was reachable. This incorrect use could cause instability in the group. Therefore, its use has been restricted to the scenario for which it was created, for forming a new membership from a subset of a previous group's membership when a majority of the members are unreachable
- Replication: The delayed initialization mechanism used for server starts has been improved. Now, it only blocks connections until the server is in read mode
- References: See also: Bug #84731, Bug #25475132
- Replication: It was possible to set server_uuid to the same value as group_replication_group_name. Doing so could result in unexpected behavior because GTIDs are identified by a UUID. Now it is not possible to set server_uuid to the same value as group_replication_group_name
- Replication: The system variable pseudo_slave_mode, which is for internal server use, sometimes raised an assertion when it was changed inside a transaction. The server no longer changes this variable inside a transaction
- Replication: When a primary member, for example the primary in single-primary group or in a multi-primary group, which also had asynchronous replication channels feeding data into it was stopped, the asynchronous channels would continue applying changes. Although super_read_only was being set when STOP GROUP_REPLICATION was issued, this did not stop any running asynchronous replication channels which were already running. This meant that changes could be made locally on the member, and that the asynchronous replication channels had to be stopped manually. Now when Group Replication stops, either due to an error or when STOP GROUP_REPLICATION is issued, all asynchronous replication channels are stopped
- Replication: A misleading warning was issued when the command FLUSH LOGS or PURGE LOGS BEFORE was used on a binary log file with an expiry time set, and the binary log file was in use. The warning related to the file being in use, and implied that a purge attempt had taken place, even if the expiry time had not yet been reached. Now, MySQL checks the expiry time of the binary log file first, and only then checks whether the file is in use. So the warning is only issued for an in-use binary log file that is old enough to be purged
- Replication: Group Replication stopped unexpectedly when more than 1024 file descriptors were in use
- Replication: Now that XA transactions are prepared and committed in two parts, an issue with statement-based replication has been identified. If two XA transactions committed on the master are being prepared on the slave in the inverse order, locking dependencies can occur that cannot be safely resolved. The issue is not present with row-based replication
- XA transactions are therefore now considered unsafe for statement-based replication
- Replication: If the Group Replication plugin was uninstalled while a group was running, the plugin was marked for uninstall. This could cause the server shutdown to not complete successfully. The fix ensures that the Group Replication plugin cannot be uninstalled if the majority of the group cannot be reached. In such a case it is necessary to issue STOP GROUP_REPLICATION before uninstalling the plugin
- Replication: Replication clients no longer enable LOCAL capability for LOAD DATA statements, because they do not use LOAD DATA LOCAL statements
- Replication: In case of a failure while creating multiple slave applier worker threads, some threads would be left orphaned and their resources would not be collected. Thanks to Laurynas Biveinis for his contribution to fixing this bug
- Replication: The binlog_checksum option cannot be changed within a transaction. MySQL cannot log this statement, as would be required inside a transaction, while the requested function is being performed on the binary log
- Replication: The logging of Group Replication has been improved. Now logging includes information when a member joins or leaves, when the view changes, and so on
- Compiling with -DWITHOUT_SERVER=1 resulted in my_symlink.c compilation failure due to missing #include for my_dir.h. Thanks to Christian Hesse for the patch
- yaSSL could incorrectly perform TLS cipher negotiation
- The Linux RPM spec file for RHEL6 and higher is updated with comments that recommend installing the redhat-rpm-config package to add convenience macros that make rebuilding the RPM package easier. Thanks to Simon Mudd for the patch
- If the error log was misconfigured and the server could not start, no output indicating the problem was produced
- mysqld_multi was modified to use mysqld --initialize rather than the deprecated mysql_install_db. Thanks to Zhan Shi for the patch
- Adding an ORDER BY to a query that included an outer join and a subquery caused a constant value defined for a column in the subquery to be incorrectly promoted to a constant value in the case when the subquery returns 0 rows
- The server failed to check the maximum path length for partition names
- Identifiers containing a mixture of backslashes and backticks could be parsed incorrectly
- Source packages for Debian platforms contained prebuilt debug binaries, causing build failures on any architectures other than the one on which those binaries were built
- The mysqld_pre_systemd script in RPM packages found the error log setting in option files if specified as log-error but not as log_error, though both are permitted
- When running mysqlbinlog with the --read-from-remote-server option, rewrite rules specified using the --rewrite-db option were ignored, so data was not written to the target database
- REFERENCES privilege checking could use the incorrect database in some cases
- Uninstalling the daemon_memcached plugin caused a serious error
- The test case file did not find the data difference between servers. Thanks to Yura Sorokin for the patch
- An ngram fulltext parser search query returned incorrect results and raised an assertion
- Selecting from a view could yield different results with materialization enabled versus materialization disabled
- The Performance Schema failed to check the maximum host length for client connections
- mysqlpump displayed incorrect progress information about the number of tables dumped
- Some mysqldump warnings went to the standard output rather than the standard error output and consequently were written to the dump file
- LOAD DATA failed to accept multibyte characters that followed an escape sequence
- A server error occurred when a full text search result exceeded the innodb_ft_result_cache_limit setting. The patch for this bug also backports a related patch
- If a stored function was considered a constant by the optimizer, calling it from a subquery in a NOT IN condition in the WHERE clause could cause a server exit
- A mysqldump memory leak was fixed. Thanks to Yura Sorokin for the patch
- Incorrect results or a server exit could result when a query used Batched Key Access optimization and a virtual generated column was part of the join buffer
- If a session rolled back to a savepoint and then was killed, the statements up to the point of the savepoint could be committed
- For clients that used Connector/Python and authenticated using the sha256_password plugin, the server could handle connections incorrectly

Join our mailing list

Stay up to date with latest software releases, news, software discounts, deals and more.