check version mysql ubuntu code example

Example 1: find mysql version linux

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)

Example 2: check mssql version ubuntu

sudo systemctl status mssql-server
or try
Check: https://docs.microsoft.com/en-us/sql/linux/quickstart-install-connect-ubuntu -
seems like a good guide to get started on mssql on ubuntu.

Tags:

Misc Example