MySQL VERSION() Function
MySQL VERSION() function return the version of the MySQL server as a string.
VERSION()grammar
Here is the syntax of the MySQL VERSION() function:
VERSION()
parameter
The MySQL VERSION() function do not require any parameters.
return value
The VERSION() function returns a string which is the version of the MySQL server.
VERSION()Example
The following example shows how to use the VERSION() function to get the version of the MySQL server.
SELECT VERSION();
+-----------+
| VERSION() |
+-----------+
| 8.0.21 |
+-----------+
Note that your values may be different.