MYSQLのバージョン確認とMYSQLの稼働時間の確認

■ Windowsでの確認

C:\Documents and Settings\administrator>mysqladmin version -u root -p
Enter password: **********
mysqladmin Ver 8.41 Distrib 5.0.22, for Win32 on ia32
Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult 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.22-community-nt
Protocol version 10
Connection localhost via TCP/IP
TCP port 3306
Uptime: 21 min 28 sec
Threads: 13 Questions: 84580 Slow queries: 0 Opens: 0 Flush tables: 1 Open tables: 79 Queries per second avg: 65.668
C:\Documents and Settings\administrator>

■ Linuxでの確認

[root@localhost ~]$ mysqladmin version -u root -p
Enter password:
mysqladmin Ver 8.42 Distrib 5.1.25-rc, 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.1.25-rc-log
Protocol version 10
Connection Localhost via UNIX socket
UNIX socket /tmp/mysql.sock
Uptime: 24 days 1 hour 9 min 5 sec

Threads: 3 Questions: 233646 Slow queries: 27059 Opens: 737 Flush tables: 1 Open tables: 64 Queries per second avg: 0.11 2
[root@localhost ~]$