Bootstrap FreeKB - mySQL / MariaDB - Determine the version of mySQL or MariaDB on Linux
mySQL / MariaDB - Determine the version of mySQL or MariaDB on Linux

Updated:   |  mySQL / MariaDB articles

Assuming you have mySQL or MariaDB installed on a Linux system, the which command can be used to determine if the mysql command line tool is installed. In this example, the mysql command line tool is installed.

~]# which mysql
/bin/mysql

 

The mysql command with the -V or --version flag can be used to determine the version of mySQL or MariaDB that is installed.

~]# mysql --version
mysql  Ver 14.14 Distrib 5.7.33, for Linux (x86_64) using  EditLine wrapper

 

Or like this.

~]# mysql -e "select @@version"
+-----------------+
| @@version       |
+-----------------+
| 10.5.10-MariaDB |
+-----------------+

 




Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee



Comments


Add a Comment


Please enter a2b8bf in the box below so that we can be sure you are a human.