How to Check the MySQL Version

 

From the Command Line

Use the following command to check the version of your local MySQL server. This command is not specific to any operating system. This command is compatible with all Linux, Windows, and macOS versions running MySQL.

mysql -V

 Here is the output.

# mysql -V
mysql  Ver 14.14 Distrib 5.7.15, for Win32 (AMD64)

 

SELECT VERSION Statement

Use the SELECT VERSION() command in the MySQL database client to check the MySQL version.

SELECT version();

Here is the output.

MariaDB [***]> SELECT version();
+-----------------+
| version()       |
+-----------------+
| 10.3.37-MariaDB |
+-----------------+
1 row in set (0.000 sec)

留言

這個網誌中的熱門文章

[HTML]標籤-下

論P, NP, NP-Complete, NP-Hard問題

[Python]基礎課程

[系統]解除電腦限制頻寬

[HTML]標籤-上

[AlaSQL] 多data查詢+累計

[SQL Sever] 日期時間

推薦使用的9款編程字體

類別型態 vs 基本型態