You can use the mysqladmin command to get version information from server as follows. Open terminal and type the following command (for remote server login over ssh session):

mysqladmin -u root -p version

Example:

1 - masukkan password

Sample Output:

2 - hasil

Source