MariaDB VERSION() Explained

In MariaDB, VERSION() is a built-in function that returns the MariaDB server version.

The result is a string that uses the utf8 character set.

Syntax

The syntax goes like this:

VERSION()

No arguments are required, or accepted.

Example

Here’s an example to demonstrate:

SELECT VERSION();

Result:

+----------------+
| VERSION()      |
+----------------+
| 10.5.9-MariaDB |
+----------------+

The VERSION() string may have one or more of the following suffixes:

SuffixDescription
-embeddedThe server is an embedded server (libmysqld).
-logGeneral logging, slow logging or binary (replication) logging is enabled.
-debugThe server is compiled for debugging.
-valgrindThe server is compiled to be instrumented with valgrind.