To find out the version of MySQL server using command line on localhost run the following:

mysql -V

To check the version on host "myhost" run:

mysql -h myhost -V

You can also see the server version in phpMyAdmin, it will be displayed on the front page.