What command returns the current version of a MySQL database?
For UBUNTU you can try the following command to check mysql version :
mysql --version