MySQL Tutorial MySQL Advanced MySQL Database Account Management MySQL References

MySQL VERSION() Function



The MySQL VERSION() function returns the version of the MySQL database. This function uses UTF8 character set.

Syntax

VERSION()

Parameters

No parameter is required.

Return Value

Returns the version of the MySQL database.

Example:

The example below shows the usage of VERSION() function.

mysql> SELECT VERSION();

The above query will return the version of the MySQL database and the output of the above query will be similar to:

mysql> SELECT VERSION();
Result: '5.6.51-0ubuntu0.12.04.2'

❮ MySQL Functions

5