In this article, we will see how to check the MySQL version in different ways.

Table of Contents:-

MySQL check version query

In this section, we will be looking into how to check the current version of your MySQL server using a query. Observe the below query.

Method1:

select version();

Output:-

image_1

Method2:

Similarly, we can also use:

select @@version;

Output:-

image_2

Method3:

We can also check the version through the SHOW VARIABLES query.

SHOW VARIABLES LIKE "%version%";

Output:-

image_3

Here, we can check the MySQL version as well as other version-related attributes.

MySQL check version mac

There are different ways to check MySQL version on mac

Method1:

To check the MySQL version on mac, we will go to the terminal and type the below query.

mysql -V

Output:-

image_4

Method2:

Once you log into MySQL through the mac terminal, the MySQL server version is displayed.

image_5

Method3:

If you are inside MySQL prompt, then execute:

mysql> status

Output:-

image_6

MySQL check version workbench

To check the MySQL server version from the workbench, go to the Administration tab.

image_7

We hope this article helped you to check the MySQL version. Good Luck !!!