2.1.1 指定用户登录的默认数据库
问题现象
如何指定用户登录的默认数据库?
处理方法
登录集群时可以指定登录后默认的数据库,使用 -D 参数即可。
$ gccli -uroot -Dvc1.test
GBase client 9.5.2.20.117651. Copyright (c) 2004-2020, GBase. All Rights
Reserved.
gbase> SELECT DATABASE();
+------------+
| database() |
+------------+
| test |
+------------+
1 row in set (Elapsed: 00:00:00.00)
2.1.2 express 日志中部分信息解释
问题现象
express.log 日志中部分信息解释。
处理方法
2017-04-10 11:55:39.258 [CPOOL1][WARN ][S:900][Q:15808]:There's no need
to commit in local connection.
这个警告是因为没有数据进行 commit 。如: set autocommit=0 ; commit ; 就会有
以上警告。
2017-04-10 12:18:02.404 [CPOOL2][WARN ][S:1877][Q:35207]:---Can't ping the
node, the socket is shutdown and the conn is deleted. Host:172.172.172.29; DB:
xjdm.
Cause: GBase server has gone away
套接字或者链接断了,原因是可能 29 节点
GBase 8a MPP使用时 数据库基础问题之一
最新推荐文章于 2022-08-28 15:40:22 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)