For the complete documentation index, see llms.txt. This page is also available as Markdown.

VERSION

Complete VERSION reference for MariaDB. Complete function guide with syntax, parameters, return values, and usage examples with comprehensive examples and.

Syntax

VERSION()

Description

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

Examples

SELECT VERSION();
+----------------+
| VERSION()      |
+----------------+
| 10.4.7-MariaDB |
+----------------+

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

Suffix
Description

-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.

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 MDEV-7780.

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

This page is licensed: GPLv2, originally from fill_help_tables.sql

spinner

Last updated

Was this helpful?