>>shell 表示在命令行下执行
1.mysql服务是否启动
shell>>ps aux |grep mysqld
2.shell >>mysqladmin version
mysqladmin Ver 8.41 Distrib 5.0.21, for pc-linux-gnu on i686
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.21-log
Protocol version 10
Connection Localhost via UNIX socket
UNIX socket /var/run/mysql/mysql.sock
Uptime: 3 days 8 hours 40 min 1 sec
Threads: 4 Questions: 713393 Slow queries: 0 Opens: 0 Flush tables: 1 Open tables: 256 Queries per second avg: 2.457