南大通用GBase 8a的status命令显示当前连接状态信息

GBase 8a数据库集群,通过status命令,显示连接ID,当前数据库,当前用户,数据库版本,是否启用SSL,字符集等信息。

目录导航

命令

status
或者
\s

样例

gbase> \s
--------------
gccli ver 9.5.2.36.125743, for unknown-linux-gnu (x86_64) using readline 6.3

Connection id:          2668
Current database:       gbase
Current user:           root@localhost
SSL:                    Not in use
Current pager:          stdout
Using outfile:          ''
Using delimiter:        ;
Server version:         9.5.2.36.125743
Protocol version:       10
Connection:             Localhost via UNIX socket
Server characterset:    utf8
Db     characterset:    utf8
Client characterset:    utf8
Conn.  characterset:    utf8
UNIX socket:            /tmp/gcluster_5258.sock
Uptime:                 Elapsed: 01:33:33.00

Threads: 3  Questions: 4756  Slow queries: 0  Opens: 28  Flush tables: 1  Open tables: 21  Queries per second avg: 0.847
--------------

gbase> status;
--------------
gccli ver 9.5.2.36.125743, for unknown-linux-gnu (x86_64) using readline 6.3

Connection id:          2668
Current database:       gbase
Current user:           root@localhost
SSL:                    Not in use
Current pager:          stdout
Using outfile:          ''
Using delimiter:        ;
Server version:         9.5.2.36.125743
Protocol version:       10
Connection:             Localhost via UNIX socket
Server characterset:    utf8
Db     characterset:    utf8
Client characterset:    utf8
Conn.  characterset:    utf8
UNIX socket:            /tmp/gcluster_5258.sock
Uptime:                 Elapsed: 01:35:01.00

Threads: 3  Questions: 4823  Slow queries: 0  Opens: 28  Flush tables: 1  Open tables: 21  Queries per second avg: 0.845
--------------