[mysql@db1 data]$ mysql --version mysql Ver 14.14 Distrib 5.6.20, for Linux (i686) using EditLine wrapper
方法二: 登录的时候查看
1 2 3 4 5 6 7 8 9 10 11 12
[mysql@db1 data]$ mysql Welcome to the MySQL monitor. Commands end with ; or g. Your MySQL connection id is 805 Server version: 5.6.20-log Source distribution Copyright (c) 2000, 2014, 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. Type 'help;' or 'h' for help. Type 'c' to clear the current input statement.
root@localhost:(none)>status -------------- mysql Ver 14.14 Distrib 5.6.20, for Linux (i686) using EditLine wrapper Connection id:805 Current database: Current user: root@localhost SSL: Not in use Current pager: stdout Using outfile:'' Using delimiter: ; Server version:5.6.20-log Source distribution Protocol version:10 Connection: Localhost via UNIX socket Server characterset: utf8 Db characterset: utf8 Client characterset: utf8 Conn. characterset: utf8 UNIX socket:/tmp/mysql.sock Uptime:20 hours 36 min 32 sec Threads:3Questions:336 Slow queries:0Opens:93 Flush tables:1 Open tables:86 Queries per second avg:0.004 ------------