ID EN
Information Functions

VERSION()

MySQL 8.4

Returns a string that indicates the MySQL server version. The string uses the utf8mb3 character set. The value might have a suffix in addition to the version number. See the description of the version system variable in Section 7.1.8, “Server System Variables”.

Syntax

MYSQL
SELECT VERSION();
'8.4.9-standard'

Examples

Example

This function is unsafe for statement-based replication. A warning is logged if you use this function when binlog_format is set to STATEMENT.

MYSQL
SELECT VERSION();
'8.4.9-standard'