How to check MySQL / MariaDB version

If you need to check the installed version of MySQL or MariaDB on your server, the easiest way is to to open a SSH session and then run the command mysql -v and then record the version returned by MySQL/MariaDB.

The next way to check is from the MySQL/MariaDB shell. From your server, issue the command mysql -u [username] -p and then enter your password when prompted. Then run the command show variables like '%version%'; and then record the version returned.

Article Information
  • Article ID: 341
  • Category: Databases
  • Viewed 295 times.
  • Rating:
    (0)
  • Was this article helpful?
  • Yes No
Did you find this article helpful?