seata 1.4.2 使用pgsql12.4版本报错

ghhkc1vu  于 2个月前  发布在  其他
关注(0)|答案(3)|浏览(24)

pgsql 版本: PostgreSQL 12.4 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44), 64-bit, TelePG

报错信息:
org.postgresql.util.PSQLException: The authentication type 10 is not supported. Check that you have configured the pg_hba.conf file to include the client's IP address or subnet, and that it is using an authentication scheme supported by the driver.

实测在13版本以上无此问题.
实测版本:PostgreSQL 13.3, compiled by Visual C++ build 1914, 64-bit

gmol1639

gmol16391#

数据库连接问题,可以检查下驱动版本与数据库版本是否对应,或者数据库配置是否正确。希望下面这个贴子可以帮到你 Unable to connect to Postgres DB

For database connection problems, you can check whether the driver version corresponds to the database version, or whether the database configuration is correct. Hope this post can help you Unable to connect to Postgres DB

cclgggtu

cclgggtu2#

数据库连接问题,可以检查下驱动版本与数据库版本是否对应,或者数据库配置是否正确。希望下面这个贴子可以帮到你 Unable to connect to Postgres DB

For database connection problems, you can check whether the driver version corresponds to the database version, or whether the database configuration is correct. Hope this post can help you Unable to connect to Postgres DB

感谢回复!~ 我们测试和线上环境是pgsql12.4版本,我在上面建了global_table、branch_table、lock_table三张表,启动seata1.4.2的时候报的这个错。我自己本机装的是pgsql13.3,连本机的时候发现seata1.4.2能正常启动。不知道是不是seata1.4.2不支持pgsql12.x,如果不支持的话可否告知哪个版本支持12.x版本,或者我只能向上反馈是否能替换线上数据库版本了,非常感谢~

vsaztqbk

vsaztqbk3#

可以根据上面的链接去验证一下,理论上来说修改数据库配置或者升级驱动版本是可行的。

相关问题