9951 explained code solutions for 126 technologies


mariadbHow to check version of Mariadb?


To check the version of MariaDB, you can use the SELECT VERSION() command. This command will return the version of MariaDB that is currently running.

Example

mysql> SELECT VERSION();
+-----------------+
| VERSION()       |
+-----------------+
| 10.4.13-MariaDB |
+-----------------+
1 row in set (0.001 sec)

The SELECT VERSION() command consists of the following parts:

  • SELECT: This is a keyword used to retrieve data from a database.
  • VERSION(): This is a function that returns the version of MariaDB that is currently running.

For more information, please refer to the following link:

Edit this code on GitHub