Want to find out what version MySQL you are running using only your command line interface? This one is super easy.
- Log in to MySQL (replace “root” with your username of choice or keep as root)
mysql -u root -p
- Enter your password when prompted
- Run the following statement
SHOW VARIABLES LIKE "%version%";
Your output might look something like this…
