All pages
Powered by GitBook
1 of 1

Loading...

VERSION

Return the server version. This function outputs a string indicating the version number and distribution of the MariaDB server.

Syntax

Description

Returns a string that indicates the MariaDB server version. The string uses the utf8 character set.

Examples

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

Suffix
Description

Changing the Version String

Some old legacy code may break because they are parsing theVERSION string and expecting a MySQL string or a simple version string like Joomla til API17, see .

You can fool these applications by setting the version string from the command line or the my.cnf files with .

This page is licensed: GPLv2, originally from

VERSION()

-embedded

The server is an embedded server (libmariadbd).

-log

General logging, slow logging or binary (replication) logging is enabled.

-debug

The server is compiled for debugging.

-valgrind

The server is compiled to be instrumented with valgrind.

MDEV-7780
--version=...
fill_help_tables.sql
SELECT VERSION();
+----------------+
| VERSION()      |
+----------------+
| 10.4.7-MariaDB |
+----------------+