云数据库 GaussDB-连接设置:connection_info

时间:2023-11-01 16:22:49

connection_info

参数说明:连接数据库的驱动类型、驱动版本号、当前驱动的部署路径和进程属主用户。

该参数属于USERSET类型参数,属于运维类参数,不建议用户设置。

取值范围:字符串。

默认值:空字符串

  • 空字符串,表示当前连接数据库的驱动不支持自动设置connection_info参数或应用程序未设置。
  • 驱动连接数据库的时候自行拼接的connection_info参数格式如下:
    1
    {"driver_name":"ODBC","driver_version": "(GaussDB VxxxRxxxCxx build 290d125f) compiled at 2020-05-08 02:59:43 commit 2143 last mr 131 release","driver_path":"/usr/local/lib/psqlodbcw.so","os_user":"omm"}

    默认显示driver_name和driver_version,driver_path和os_user的显示由用户控制(参见连接数据库Linux下配置数据源)。

support.huaweicloud.com/distributed-devg-v2-opengauss/gaussdb-v5r2c10-1436.html