What does the first part of the MariaDB version string mean?

后端 未结 1 1765
野的像风
野的像风 2021-01-27 01:20

If I inspect the DB version information from within PHP, MariaDB returns an extra set of version numbers at the front of its version string.



        
相关标签:
1条回答
  • 2021-01-27 02:17

    The version prefix (so called "replication version hack") was introduced when MariaDB bumped the major version number to 10 (2 digits).

    This was necessary, since the replication protocol expects a 1-digit major version number and would break with a 2 digit version number.

    The version 5.5.5 was never released.

    From Connector/C source:

    #define MA_RPL_VERSION_HACK "5.5.5-"
    ...
    mysql->server_version= strdup(end + sizeof(MA_RPL_VERSION_HACK) - 1);
    
    0 讨论(0)
提交回复
热议问题