【DM版本】:
DM Database Server 64 V8
DB Version: 0x7000c
03134284058-20230726-197096-20046
【操作系统】:linux_x86
【CPU】: Intel(R) Xeon(R) Silver 4215R CPU @ 3.20GHz
【问题描述】*:
数据库运行在docker容器,修改配置文件:/opt/dmdbms/conf/dm.ini 的ENABLE_ENCRYPT=1之后,重启服务,提示ssl初始化失败,并且无法连接数据库。此前ENABLE_ENCRYPT为0时是可以连接的。
完整日志
2026-09-02 18:10:46.717 [INFO] database P0000000054 T0000000000000000101 pseg_crash_trx_rollback end, total 0 active crash trx, include 0 empty_trxs, 0 empty_pages which only need to delete mgr recs.
2026-09-02 18:10:46.717 [INFO] database P0000000054 T0000000000000000101 pseg_crash_trx_rollback end
2026-09-02 18:10:46.717 [INFO] database P0000000054 T0000000000000000101 hpc_clear_active_trx adjust n_crash_active_trx from 0 to 0.
2026-09-02 18:10:46.717 [INFO] database P0000000054 T0000000000000000054 backup control file /opt/dmdbms/data/DAMENG/dm.ctl to file /opt/dmdbms/data/DAMENG/dm_20260902181046_717894.ctl
2026-09-02 18:10:46.902 [INFO] database P0000000054 T0000000000000000054 backup control file /opt/dmdbms/data/DAMENG/dm.ctl to file /opt/dmdbms/data/DAMENG/ctl_bak/dm_20260902181046_836117.ctl succeed
2026-09-02 18:10:46.902 [INFO] database P0000000054 T0000000000000000054 local instance name is DMSERVER, mode is NORMAL, status is OPEN.
2026-09-02 18:10:46.902 [INFO] database P0000000054 T0000000000000000054 SYSTEM IS READY.
2026-09-02 18:10:46.902 [INFO] database P0000000054 T0000000000000000054 set g_dw_stat from UNDEFINED to NONE success, g_dw_recover_stop is 0
2026-09-02 18:10:47.717 [INFO] database P0000000054 T0000000000000000103 trx4_min_tid_collect set min_active_id_opt, min_active_id: 7018, first_tid: 7014
2026-09-02 18:10:56.139 [ERROR] database P0000000054 T0000000000000000145 Initializing SSL Connect failed.
改为ENABLE_ENCRYPT=1的话,需要创建SSL证书才行。
只想加密的话,配置这个参数COMM_ENCRYPT_NAME

配置ssl证书了吗?
https://eco.dameng.com/community/training/913ef1b4728ce03257f7a33789302cad