There are a couple of ways to check the MySQL version.
Using @@Version
To check the MySQL version use Select @@version
SELECT @@VERSION;
It will display the MySQL version installed in your system.
8.0.20
We have 8.0.20 version of MySQL installed.
Using SELECT VERSION()
By using SELECT VERSION()
command we can also check the MySQL version.
SELECT VERSION();