From bd29783e1d56b3e5797124710ec6625b0fd17a7f Mon Sep 17 00:00:00 2001 From: 2881099 <2881099@users.noreply.github.com> Date: Fri, 10 Jan 2025 14:02:23 +0800 Subject: [PATCH] Update freesql-provider-custom.md --- docs/guide/freesql-provider-custom.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/docs/guide/freesql-provider-custom.md b/docs/guide/freesql-provider-custom.md index 85b4144ac..1c0b73e66 100644 --- a/docs/guide/freesql-provider-custom.md +++ b/docs/guide/freesql-provider-custom.md @@ -37,18 +37,22 @@ fsql.SetDbProviderFactory(MySqlConnectorFactory.Instance); --- -报错:Received AuthenticationSASL message with 0 mechanisms! +华为报错:Received AuthenticationSASL message with 0 mechanisms! -解决方法: +1、连接串 -1、pg_hba.conf +```shell +Host=127.0.0.1;Port=15432;Username=qadmin;Password=******;Database=db;No Reset On Close=true;Pooling=true;Minimum Pool Size=1 +``` + +2、pg_hba.conf ```shell host all all 0.0.0.0/0 sha256 host all all 127.0.0.1/32 trust ``` -2、postgresql.conf +3、postgresql.conf ```shell password_encryption_type = 1