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

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

What command returns the current version of a MySQL database?

20条回答
  •  抹茶落季
    2020-11-28 18:30

    Here two more methods:

    Linux: Mysql view version: from PHP

    From a PHP function, we can see the version used:

    mysql_get_server_info ([resource $ link_identifier = NULL]): string
    

    Linux: Mysql view version: Package version

    For RedHat / CentOS operating systems:

    rpm -qa | grep mysql
    

    For Debian / Ubuntu operating systems:

    rpm -qa | grep mysql
    

    Extracted from: https://www.sysadmit.com/2019/03/linux-mysql-ver-version.html

提交回复
热议问题