MySQL ヴァージョンの調べ方

mysqladmin を使用する。ユーザ名とパスワードが聞かれる。

mysqladmin version -uroot -p
Enter password:
mysqladmin  Ver 8.41 Distrib 5.0.45, for redhat-linux-gnu on i686
Copyright (C) 2000-2006 MySQL AB
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL license

Server version          5.0.45
Protocol version        10
Connection              Localhost via UNIX socket
UNIX socket             /var/lib/mysql/mysql.sock
Uptime:                 15 days 1 hour 17 min 53 sec

Threads: 1  Questions: 222  Slow queries: 0  Opens: 25  Flush tables: 1  Open tables: 19  Queries per second avg: 0.000