§ Changes in GreatSQL 8.4.4-4 (2025-10-15)

§ Version Information

§ Feature Enhancements

Based on Percona Server for MySQL 8.4.4-4, GreatSQL 8.4.4-4 has mainly enhanced features in four aspects: High Availability, High Performance, High Compatibility, and High Security, enabling GreatSQL to meet financial-grade application scenarios on commodity hardware and serve as an ideal drop-in replacement for MySQL or Percona Server for MySQL.

§ High Availability

A large number of improvements and enhancements have been made to MGR and source-replica replication. Features such as zone tags, arbitrator nodes, dynamic read/write VIP, fast single-primary mode, and smart primary election are supported. In-depth optimizations have been made to multiple MGR underlying working mechanisms and algorithms, including the flow control algorithm, transaction certification queue cleanup algorithm, node join/leave mechanism, recovery mechanism, and large transaction compression and transmission, further improving MGR's high availability guarantee and performance stability.

  • Supports the zone tag feature, improving data reliability in multi-data-center architectures.
  • Supports the arbitrator node feature, achieving higher availability at lower server cost.
  • Supports the dynamic read/write VIP feature, making high availability switchover more convenient and achieving read load balancing faster. Supports actively closing current active connections when the primary node switches, shortening the application-side unavailability window.
  • Supports fast single-primary mode, which is faster and higher performing in single-primary mode.
  • Supports the smart primary election feature, making the high availability switchover primary election mechanism more reasonable.
  • Optimized the flow control algorithm, making transactions smoother and avoiding severe jitter.
  • Supports recording events where MGR network communication overhead exceeds the threshold, for further analysis and optimization.
  • Supports automatically selecting the member node with the latest transaction data for data copying, effectively improving Clone speed and MGR service reliability.
  • In source-replica replication, rate limiting is supported when replica nodes initiate Binlog read requests to the primary node.
  • Optimized the failure detection efficiency in asynchronous connection failover (opens new window), reducing the duration of source-replica replication link disconnection and improving overall availability.
  • Supports the loop prevention in primary-primary bidirectional replication mechanism in cross-data-center disaster recovery scenarios.
  • Optimized the problem of severe performance jitter that could occur when MGR nodes join or leave.
  • Solved the problem of the entire MGR cluster being blocked when the disk space on individual nodes is full.
  • Optimized the MGR transaction certification queue cleanup algorithm; under high load, the performance jitter every 60 seconds no longer exists.
  • Solved the problem of being unable to elect a primary caused by long transactions in MGR.
  • Fixed the long wait problem during MGR recovery.
  • Optimized the handling mechanism for MGR large transaction compression exceeding the limit.

For more information, see the documentation: High Availability.

§ High Performance

Performance is more stable and excellent compared with MySQL and Percona Server for MySQL. Features such as the Rapid Engine, Turbo Engine, transaction lock-free optimization, parallel LOAD DATA, asynchronous deletion of large tables, thread pool, non-blocking DDL, and NUMA affinity scheduling optimization are supported. In TPC-C testing, performance is improved by more than 30% compared with MySQL, and in TPC-H testing, performance is more than ten times or even hundreds of times that of MySQL.

  • Supports the high-performance Rapid Engine with massive parallelism, in-memory queries, and a high compression ratio, which can improve data analysis performance by several orders of magnitude.
  • Supports the high-performance parallel query engine Turbo, giving GreatSQL multi-threaded concurrent vectorized real-time query capabilities.
  • Optimized the InnoDB transaction system, implementing multiple optimizations such as large lock splitting and lock-free design; overall OLTP scenario performance is improved by about 20%.
  • Supports parallel LOAD DATA, suitable for application scenarios that frequently import large amounts of data, with performance improved by more than 20 times; optimization is also provided for scenarios without an explicitly defined primary key.
  • Supports asynchronous deletion of large tables, improving the stability of InnoDB runtime performance.
  • Supports the thread pool, reducing the cost of thread creation and destruction, and ensuring stable performance without obvious degradation under high concurrency.
  • Supports non-blocking DDL, avoiding the problem of business requests being blocked in large numbers because the database must complete DDL operations as soon as possible.
  • Supports NUMA affinity optimization. Through NUMA affinity scheduling optimization, front-end user threads and background threads are bound to fixed NUMA nodes to improve thread processing performance.

For more information, see the documentation: High Performance.

§ High Compatibility

GreatSQL achieves 100% complete compatibility with MySQL and Percona Server for MySQL syntax, and supports most common Oracle syntax, including data type compatibility, function compatibility, SQL syntax compatibility, stored routine compatibility, and many other compatibility extension usages.

For more information, see the documentation: High Compatibility.

§ High Security

GreatSQL supports multiple security enhancement features such as logical backup encryption, Clone backup encryption, auditing, tablespace encryption with national cryptographic algorithms, sensitive data masking, and login history storage, further ensuring business data security and making it more suitable for financial-grade application scenarios.

Through the above multiple security enhancement features, business data security is further ensured. For more information, see the documentation: High Security.

§ Others

§ Notes

Upgrading from 8.0 to 8.4 has the greatest impact on existing operations and management systems: the original commands containing the MASTER/SLAVE keywords are no longer available. The main changes are shown in the table below

Old Command New Command
START SLAVE START REPLICA
STOP SLAVE STOP REPLICA
SHOW SLAVE STATUS SHOW REPLICA STATUS
SHOW SLAVE HOSTS SHOW REPLICAS
RESET SLAVE RESET REPLICA
CHANGE MASTER TO CHANGE REPLICATION SOURCE TO
RESET MASTER RESET BINARY LOGS AND GTIDS
SHOW MASTER STATUS SHOW BINARY LOG STATUS
PURGE MASTER LOGS PURGE BINARY LOGS
SHOW MASTER LOGS SHOW BINARY LOGS

In addition, the related parameter variables in CHANGE MASTER (the new command is CHANGE REPLICATION SOURCE TO) and START SLAVE (the new command is START REPLICA) have also changed, as shown in the table below

Old Parameter Name New Parameter Name
MASTER_AUTO_POSITION SOURCE_AUTO_POSITION
MASTER_HOST SOURCE_HOST
MASTER_BIND SOURCE_BIND
MASTER_USER SOURCE_USER
MASTER_PASSWORD SOURCE_PASSWORD
MASTER_PORT SOURCE_PORT
MASTER_CONNECT_RETRY SOURCE_CONNECT_RETRY
MASTER_RETRY_COUNT SOURCE_RETRY_COUNT
MASTER_DELAY SOURCE_DELAY
MASTER_SSL SOURCE_SSL
MASTER_SSL_CA SOURCE_SSL_CA
MASTER_SSL_CAPATH SOURCE_SSL_CAPATH
MASTER_SSL_CIPHER SOURCE_SSL_CIPHER
MASTER_SSL_CRL SOURCE_SSL_CRL
MASTER_SSL_CRLPATH SOURCE_SSL_CRLPATH
MASTER_SSL_KEY SOURCE_SSL_KEY
MASTER_SSL_VERIFY_SERVER_CERT SOURCE_SSL_VERIFY_SERVER_CERT
MASTER_TLS_VERSION SOURCE_TLS_VERSION
MASTER_TLS_CIPHERSUITES SOURCE_TLS_CIPHERSUITES
MASTER_SSL_CERT SOURCE_SSL_CERT
MASTER_PUBLIC_KEY_PATH SOURCE_PUBLIC_KEY_PATH
GET_MASTER_PUBLIC_KEY GET_SOURCE_PUBLIC_KEY
MASTER_HEARTBEAT_PERIOD SOURCE_HEARTBEAT_PERIOD
MASTER_COMPRESSION_ALGORITHMS SOURCE_COMPRESSION_ALGORITHMS
MASTER_ZSTD_COMPRESSION_LEVEL SOURCE_ZSTD_COMPRESSION_LEVEL
MASTER_LOG_FILE SOURCE_LOG_FILE
MASTER_LOG_POS SOURCE_LOG_POS

In the results of the SQL command SHOW [GLOBAL] STATUS, some status variables have also changed, as shown in the table below

Old Status Variable Name New Status Variable Name
Com_slave_start Com_replica_start
Com_slave_stop Com_replica_stop
Com_show_slave_status Com_show_replica_status
Com_show_slave_hosts Com_show_replicas
Com_show_master_status Com_show_binary_log_status
Com_change_master Com_change_replication_source

§ Upgrading/Downgrading to GreatSQL 8.4.4-4

§ Upgrading to GreatSQL 8.4.4-4

  • If the old version is GreatSQL 5.7 or another series version, you can directly start GreatSQL 8.0.32-27 in-place based on the original datadir after modifying basedir, first upgrading in-place to GreatSQL 8.0.32-27. Then continue upgrading on the basis of that datadir, i.e., modify basedir to point to the new GreatSQL 8.4.4-4 version and perform the in-place upgrade again. Note that after upgrading from 5.7 to 8.0 and then to 8.4, the accounts in the database still use the mysql_native_password password authentication plugin. After the final upgrade to 8.4, you need to modify the my.cnf configuration file and add mysql_native_password=1 to ensure that the original accounts can log in normally.

  • If the old version is GreatSQL 8.0 or another series version and the Rapid Engine is not used, you can directly start GreatSQL 8.4.4-4 in-place based on the original datadir after modifying basedir, and automatic upgrade will be completed.

  • If the old version is GreatSQL 8.0.32-27 with the Rapid Engine enabled, you can directly start GreatSQL 8.4.4-4 in-place based on the original datadir after modifying basedir, and automatic upgrade will be completed.

  • If the old version is GreatSQL 8.0.32-25 or 8.0.32-26 with the Rapid Engine enabled, in-place upgrade is not possible in this case. You need to unload all Rapid Engine tables and delete the Rapid data files, and then you can start GreatSQL 8.4.4-4 in-place based on the original datadir after modifying basedir for automatic upgrade. After the new version instance starts, execute ALTER TABLE SECONDARY_LOAD on all Rapid Engine tables to complete the full data import, then execute SELECT START_SECONDARY_ENGINE_INCREMENT_LOAD_TASK() to start the incremental import task, completing the Rapid Engine table upgrade. The following is a reference upgrade process:

    1. Query and record all Rapid Engine tables

    You can execute the following SQL to query which tables currently use the Rapid Engine:

    greatsql> SELECT TABLE_SCHEMA, TABLE_NAME, TABLE_ROWS FROM information_schema.TABLES WHERE CREATE_OPTIONS LIKE '%Rapid%';
    +--------------+----------------+------------+
    | TABLE_SCHEMA | TABLE_NAME     | TABLE_ROWS |
    +--------------+----------------+------------+
    | tpch100g     | customer       |   14854987 |
    | tpch100g     | lineitem       |  582868392 |
    | tpch100g     | nation         |         25 |
    | tpch100g     | orders         |  148492582 |
    | tpch100g     | part           |   19943155 |
    | tpch100g     | partsupp       |   79832625 |
    | tpch100g     | region         |          5 |
    | tpch100g     | supplier       |     989416 |
    +--------------+----------------+------------+
    
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13

    2. Stop the GreatSQL instance process normally

    Before stopping the GreatSQL instance process, first modify innodb_fast_shutdown=0 and then execute SHUTDOWN to stop the instance

    greatsql> SET GLOBAL innodb_fast_shutdown=0;
    greatsql> SHUTDOWN;
    
    1
    2

    3. Delete the old Rapid Engine data files

    cd /data/GreatSQL && rm -f duckdb*
    
    1

    4. Modify the basedir parameter in the my.cnf configuration file to point to the new GreatSQL 8.4.4-4 version

    #my.cnf
    [mysqld]
    basedir=/usr/local/GreatSQL-8.4.4-4-Linux-glibc2.28-x86_64
    
    1
    2
    3

    And make sure the parameter upgrade is not set to NONE.

    5. Start the new GreatSQL 8.4.4-4 instance

    systemctl start greatsql
    
    1

    6. Reinstall the Rapid Engine

    greatsql> INSTALL PLUGIN rapid SONAME 'ha_rapid.so';
    
    1

    7. Perform a full data import for the Rapid Engine tables

    greatsql> ALTER TABLE test.t1 SECONDARY_LOAD;
    
    1

    Tip

    Since the SECONDARY_ENGINE=rapid attribute of the table was not removed before the upgrade, there is no need to set it again. If all Rapid Engine tables were unloaded before the upgrade, you need to set it again.

    8. Start the incremental import task again

    greatsql> SELECT START_SECONDARY_ENGINE_INCREMENT_LOAD_TASK('test', 't1');
    
    1

    This completes the Rapid Engine table upgrade.

  • If the old version is MySQL 5.7 or Percona Server 5.7 or another series version, you can directly start GreatSQL 8.0.32-27 in-place based on the original datadir after modifying basedir. After confirming the upgrade is successful, continue upgrading on the basis of the original datadir, i.e., modify basedir to point to the new GreatSQL 8.4.4-4 version, and then automatic upgrade will be completed. Note that after upgrading from 5.7 to 8.0 and then to 8.4, the accounts in the database still use the mysql_native_password password authentication plugin. After the final upgrade to 8.4, you need to modify the my.cnf configuration file and add mysql_native_password=1 to ensure that the original accounts can log in normally.

  • If the old version is MySQL 8.0 or Percona Server 8.0 or another series version, you can directly start GreatSQL 8.4.4-4 in-place based on the original datadir after modifying basedir, and automatic upgrade will be completed.

  • In other cases, it is best to upgrade to GreatSQL 8.4.4-4 by importing a logical backup file.

In the above in-place upgrade scenarios, make sure that the upgrade parameter in my.cnf is not set to NONE; it can be set to the default AUTO or FORCE. For example:

#my.cnf
[mysqld]
upgrade = AUTO
1
2
3

For more migration and upgrade solutions, please refer to: Migration & Upgrade.

§ Downgrading to GreatSQL 8.4.4-4

If you want to downgrade from a higher minor version in the MySQL/Percona 8.4 series to GreatSQL 8.4.4-4, you can use the in-place downgrade method to quickly complete the version downgrade. That is, you can directly start GreatSQL 8.4.4-4 in-place based on the original datadir after modifying basedir and adding the parameter setting upgrade=FORCE, and automatic downgrade will be completed.

If you want to downgrade from MySQL/Percona 9.0 or later versions to GreatSQL 8.4.4-4, you need to use the logical backup + logical import method to complete the downgrade. In addition, on the first restart after the logical backup import is completed, be sure to set upgrade=FORCE to force upgrading all data tables, including system tables.

The downgrade process is roughly as follows:

1. Perform a full logical backup in the higher version

mysqldump -S/data/MySQL/mysql.sock -A --triggers --routines --events --single-transaction > /data/backup/fulldump.sql
1

2. Import the logical backup file in the GreatSQL 8.4.4-4 environment to complete logical recovery

mysql -S/data/GreatSQL/mysql.sock -f < /data/backup/fulldump.sql
1

3. Modify my.cnf to ensure the upgrade=FORCE setting

#my.cnf
[mysqld]
upgrade = FORCE
1
2
3

4. Restart GreatSQL to complete the downgrade

systemctl restart greatsql
1

During the restart, you can see a forced downgrade process in the log similar to the following

[Note] [MY-013387] [Server] Upgrading system table data.
[Note] [MY-013385] [Server] Upgrading the sys schema.
[Note] [MY-013400] [Server] Upgrade of help tables started.
[Note] [MY-013400] [Server] Upgrade of help tables completed.
[Note] [MY-013394] [Server] Checking 'mysql' schema.
[Note] [MY-013394] [Server] Checking 'sys' schema.
[System] [MY-014064] [Server] Server downgrade from '80406' to '80404' started.
[System] [MY-014064] [Server] Server downgrade from '80406' to '80404' completed.
1
2
3
4
5
6
7
8

If upgrade = FORCE is not set to force upgrading all tables, the system table mysql.procs_priv may be corrupted, and an error similar to the following may be reported when creating users:

greatsql> create user tpch identified by 'tpch';
ERROR 1728 (HY000): Cannot load from mysql.procs_priv. The table is probably corrupted
1
2

§ GreatSQL vs MySQL

1. Major Features GreatSQL 8.4.4-4 MySQL 8.4.4
Open Source ✔️ ✔️
ACID Integrity ✔️ ✔️
MVCC Features ✔️ ✔️
Row Locks Supported ✔️ ✔️
Automatic Crash Recovery ✔️ ✔️
Table Partitioning ✔️ ✔️
Views ✔️ ✔️
Subqueries ✔️ ✔️
Triggers ✔️ ✔️
Stored Programs ✔️ ✔️
Foreign Keys ✔️ ✔️
Window Functions ✔️ ✔️
Common Table Expressions (CTE) ✔️ ✔️
Geographic Information (GIS) ✔️ ✔️
GTID-Based Replication ✔️ ✔️
Group Replication (MGR) ✔️ ✔️
MyRocks Engine ✔️ ❌
LoongArch Architecture Support ✔️ ❌
2. Performance Enhancement Extensions GreatSQL 8.4.4-4 MySQL 8.4.4
Rapid Engine ✔️ HeatWave (cloud only)
Turbo Engine ✔️ ❌
NUMA Affinity Optimization ✔️ ❌
Non-Blocking DDL ✔️ ❌
Import Optimization for Tables Without Primary Key ✔️ ❌
Parallel LOAD DATA ✔️ ❌
InnoDB Transaction ReadView Lock-Free Optimization ✔️ ❌
InnoDB Transaction Large Lock Splitting Optimization ✔️ ❌
InnoDB Page Compression with Zstd Support ✔️ ❌
InnoDB Resource Groups ✔️ ✔️
Custom InnoDB Page Size ✔️ ✔️
Contention-Aware Transaction Scheduling ✔️ ✔️
InnoDB Mutexes Splitting Optimization ✔️ ❌
MEMORY Engine Optimization ✔️ ❌
InnoDB Flushing Optimization ✔️ ❌
Parallel Doublewrite Buffer ✔️ ✔️
InnoDB Fast Index Creation Optimization ✔️ ❌
Single-Column Compression for VARCHAR/BLOB/JSON Types ✔️ ❌
Single-Column Compression Information in Data Dictionary ✔️ ❌
3. Developer-Oriented Improvements GreatSQL 8.4.4-4 MySQL 8.4.4
X API ✔️ ✔️
JSON ✔️ ✔️
NoSQL Socket-Level Interface ✔️ ✔️
InnoDB Full-Text Search Improvements ✔️ ❌
More Hash/Digest Functions ✔️ ❌
Oracle Compatibility - Data Types ✔️ ❌
Oracle Compatibility - Functions ✔️ ❌
Oracle Compatibility - SQL Syntax ✔️ ❌
Oracle Compatibility - Stored Programs ✔️ ❌
4. Basic Feature Enhancements GreatSQL 8.4.4-4 MySQL 8.4.4
MGR Enhancement - Zone Tags ✔️ ❌
MGR Enhancement - Arbitrator Nodes ✔️ ❌
MGR Enhancement - VIP Binding for Read/Write Nodes ✔️ ❌
MGR Enhancement - Fast Single-Primary Mode ✔️ ❌
MGR Enhancement - Smart Primary Election Mechanism ✔️ ❌
MGR Enhancement - New Flow Control Algorithm ✔️ ❌
MGR Enhancement - Network Partition Exception Handling ✔️ ❌
MGR Enhancement - Abnormal Node Exit Handling ✔️ ❌
MGR Enhancement - Full Node Disk Handling ✔️ ❌
MGR Enhancement - Automatic Donor Node Selection ✔️ ❌
MGR Enhancement - Large Transaction Compression Optimization ✔️ ❌
Clone Incremental Backup ✔️ ❌
Clone Backup Compression ✔️ ❌
Binlog Read Rate Limit ✔️ ❌
Number of information_schema tables 95 65
Global performance and status metrics 853 434
Optimizer Histograms ✔️ ✔️
Per-Table Performance Metrics ✔️ ❌
Per-Index Performance Metrics ✔️ ❌
Per-User Performance Metrics ✔️ ❌
Per-Client Performance Metrics ✔️ ❌
Per-Thread Performance Metrics ✔️ ❌
Global Query Response Time Statistics ✔️ ❌
SHOW ENGINE INNODB STATUS Enhancement ✔️ ❌
Rollback Segment Information Enhancement ✔️ ❌
Temporary Table Information Enhancement ✔️ ❌
User Statistics Enhancement ✔️ ❌
Slow Query Log Enhancement ✔️ ❌
5. Security Enhancements GreatSQL 8.4.4-4 MySQL 8.4.4
National Cryptographic Algorithm Support ✔️ ❌
Backup Encryption ✔️ ❌
Auditing ✔️ Enterprise Edition only
Data Masking ✔️ ❌
SQL Roles ✔️ ✔️
SHA-2 Password Hashing ✔️ ✔️
Password Rotation Policy ✔️ ✔️
PAM Authentication Plugin ✔️ Enterprise Edition only
Keyring Stored in File ✔️ ✔️
Keyring Stored in Hashicorp Vault ✔️ Enterprise Edition only
InnoDB Data Encryption ✔️ ✔️
InnoDB Log Encryption ✔️ ✔️
InnoDB Tablespace File Encryption ✔️ ✔️
Binary Log Encryption ✔️ ❌
Temporary File Encryption ✔️ ❌
Forced Encryption ✔️ ❌
6. Operations Convenience Enhancements GreatSQL 8.4.4-4 MySQL 8.4.4
DDL Atomicity ✔️ ✔️
Data Dictionary Stored in InnoDB Tables ✔️ ✔️
Fast DDL ✔️ ✔️
SET PERSIST ✔️ ✔️
Invisible Indexes ✔️ ✔️
Thread Pool ✔️ Enterprise Edition only
Backup Locks ✔️ ❌
SHOW GRANTS Extension ✔️ ❌
Table Corruption Action Extension ✔️ ❌
Kill Inactive Transactions ✔️ ❌
START TRANSACTION WITH CONSISTENT SNAPSHOT Extension ✔️ ❌

GreatSQL 8.4.4-4 is based on Percona Server for MySQL 8.4.4-4, which has made a large number of improvements and enhancements and added many new features on top of MySQL 8.4.4. For details, please see: Percona Server for MySQL feature comparison (opens new window). These include features only available in MySQL Enterprise Edition, such as thread pool, auditing, and data masking, as well as numerous improvements and enhancements such as performance_schema improvements, information_schema improvements, performance and scalability improvements, user statistics enhancements, PROCESSLIST enhancements, and Slow Query Log enhancements. They are not listed here one by one.

§ GreatSQL Release Notes

§ GreatSQL 8.4

§ GreatSQL 8.0

§ GreatSQL 5.7

Scan the QR code to follow our WeChat Official Account

greatsql-wx