
openGaussԴ��PostgreSQL,��Ҫ���ں����˺ܴ�Ķ����ͻ��˺ͷ���˵�����Э���ıȽ��٣���Ҫ��֧����SHA256���µ�����洢��Ȩ��ʽ�� �������ܿ���JDBC �ǽ�����PostgreSQL�������� Python�汾Ҳ��һ���������PostgreSQL�����������ù������ٽ��ж��ƻ������� �����㰴�������������֣� 1������PostgreSQL �������� http://www.postgres.cn/docs/10/protocol-message-types.html ��һ�� ǰ��˵�ͨ�ż�Ȩ��ʽ�� 2������hab.confΪ MD5��ʽ����postgresq.conf�����ļ��е� GUC���� password_encryption_type Ϊ 0����ʾMD5����洢��ʽ�������ַ�ʽ�£���ԭ��PG������һ���������ͨ���̡� 3������hab.confΪ sha256��ʽ����postgresq.conf�����ļ��е� GUC���� password_encryption_type Ϊ 2 ��ʾSHA256 ����洢��ʽ������openGauss�µļ�Ȩ��ʽ�� 4������pytyon�Ƿ�֧��SSL��֤������һ��SSL����֤��ʽ�� ����м������⣬�����Լ��� hab.conf ����Ϊtrust��������֤�� authmehod-options֧������ѡ� �� trust�������ܣ���ֹԶ������ʹ��trust��ʽ���ʼ�Ⱥ �� reject���ܾ����� �� md5��md5��֤��Ĭ�ϲ�֧�� �� sha256��sha256��֤���Ƽ�ʹ�ã� �� cert���ͻ���֤����֤ �� gss��kerberos��֤ �C ע���Ѿ����õĿͻ�����֤���ԣ� ͬʱ�����ź�����pg_hba.conf password_encryption_type ����˵�������ֶξ������ú��ּ��ܷ�ʽ���û�������м��ܴ洢���Ĵ˲������� �ò����Զ����������û�������ܷ�ʽ���ģ�ֻ��Ӱ���´����û������û����� ������ �ò�������SIGHUP���Ͳ�������ο���4-134�ж�Ӧ���÷����������á� ȡֵ��Χ��0��1��2 �� 0��ʾ����md5��ʽ��������ܡ� �� 1��ʾ����sha256��md5���ַ�ʽ�ֱ��������ܡ� �� 2��ʾ����sha256��ʽ��������ܡ� Best Regards, ������: �⾩�� [mailto:1435130236@qq.com] ����ʱ��: 2020��11��15�� 22:31 �ռ���: tc <tc@opengauss.org> ����: [TC] openGauss Python �������� ���ã� ���DZ����ʵ��ѧһ���ж�ѧ���������˹��ڿ���openGauss<https://gitee.com/opengauss/openGauss-server>���ݿ�python���������һ���������ҿ���jdbc�Ĵ��룬����ò�����õ��˺ܶ�postgresql����������python�汾��Ҳ��һ����Ӧ�ô��ǽ�postgresql ����������Ū������Ȼ���ٽ��ж��ƻ��ĵ��������ǹ���û����ص��ĵ�������ʱ�����֣�����������ص�һЩ�ĵ����߽�����������Ҳ���Կ�ʼ���ֿ���python�汾��Ӧ�ó���