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

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

What command returns the current version of a MySQL database?

20条回答
  •  旧时难觅i
    2020-11-28 18:17

    Simply login to the Mysql with

    mysql -u root -p
    

    Then type in this command

    select @@version;
    

    This will give the result as,

    +-------------------------+
    | @@version               |
    +-------------------------+
    | 5.7.16-0ubuntu0.16.04.1 |
    +-------------------------+
    1 row in set (0.00 sec)
    

提交回复
热议问题