How to retrieve the current version of a MySQL database management system (DBMS)?

后端 未结 20 2355
忘掉有多难
忘掉有多难 2020-11-28 18:06

What command returns the current version of a MySQL database?

20条回答
  •  清酒与你
    2020-11-28 18:35

    SHOW VARIABLES LIKE "%version%";
    +-------------------------+------------------------------------------+
    | Variable_name           | Value                                    |
    +-------------------------+------------------------------------------+
    | protocol_version        | 10                                       |
    | version                 | 5.0.27-standard                          |
    | version_comment         | MySQL Community Edition - Standard (GPL) |
    | version_compile_machine | i686                                     |
    | version_compile_os      | pc-linux-gnu                             |
    +-------------------------+------------------------------------------+
    5 rows in set (0.04 sec)
    

    MySQL 5.0 Reference Manual (pdf) - Determining Your Current MySQL Version - page 42

提交回复
热议问题