GaussDB连接与登出

连接

连接命令1:

gsql -d ${dbName} -U ${userName} -p {port:默认为25308} -h {ip} -W {password}

连接命令2:

gsql -d postgres -p {port:默认为25308}

两个命令都需要安装有GaussDB客户端

登出命令

\q

查看当前连接情况

select * from pg_stat_activity;
posted @ 2020-08-13 21:51  周建林  阅读(1635)  评论(0编辑  收藏  举报