MySQL のバージョンを確認する方法はいくつかある。

1. mysqladmin コマンド
C:\work>mysqladmin -u root -p version
Enter password: *****
mysqladmin Ver 8.42 Distrib 5.5.25a, for Win32 on x86
Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Server version 5.5.25a-log
Protocol version 10
Connection localhost via TCP/IP
TCP port 3306
Uptime: 15 min 53 sec

Threads: 1 Questions: 8 Slow queries: 0 Opens: 33 Flush tables: 1 Open tabl
es: 26 Queries per second avg: 0.008

2. mysql コマンド
C:\work>mysql --version
mysql Ver 14.14 Distrib 5.5.25a, for Win32 (x86)

3. status コマンド
mysql> status
--------------
mysql Ver 14.14 Distrib 5.5.25a, for Win32 (x86)

Connection id: 9
Current database:
Current user: root@localhost
SSL: Not in use
Using delimiter: ;
Server version: 5.5.25a-log MySQL Community Server (GPL)
Protocol version: 10
Connection: localhost via TCP/IP
Server characterset: utf8
Db characterset: utf8
Client characterset: utf8
Conn. characterset: utf8
TCP port: 3306
Uptime: 22 min 40 sec

Threads: 1 Questions: 12 Slow queries: 0 Opens: 33 Flush tables: 1 Open tab
les: 26 Queries per second avg: 0.008
--------------

4. version関数
mysql> select version();
+-------------+
| version() |
+-------------+
| 5.5.25a-log |
+-------------+
1 row in set (0.00 sec)


以上。