From 8af3342d240073c0241bbe91c9599d89e9e186fe Mon Sep 17 00:00:00 2001 From: zcp100_zcp100 Date: Wed, 10 Aug 2022 09:04:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A6=82=E4=BD=95=E5=BC=80=E5=90=AF=E5=AE=A2?= =?UTF-8?q?=E6=88=B7=E7=AB=AF=E5=8A=A0=E5=AF=86=E7=89=B9=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...40\345\257\206\347\211\271\346\200\247.md" | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 "content/zh/post/zhangcuiping/\345\246\202\344\275\225\345\274\200\345\220\257\345\256\242\346\210\267\347\253\257\345\212\240\345\257\206\347\211\271\346\200\247.md" diff --git "a/content/zh/post/zhangcuiping/\345\246\202\344\275\225\345\274\200\345\220\257\345\256\242\346\210\267\347\253\257\345\212\240\345\257\206\347\211\271\346\200\247.md" "b/content/zh/post/zhangcuiping/\345\246\202\344\275\225\345\274\200\345\220\257\345\256\242\346\210\267\347\253\257\345\212\240\345\257\206\347\211\271\346\200\247.md" new file mode 100644 index 00000000..798cb673 --- /dev/null +++ "b/content/zh/post/zhangcuiping/\345\246\202\344\275\225\345\274\200\345\220\257\345\256\242\346\210\267\347\253\257\345\212\240\345\257\206\347\211\271\346\200\247.md" @@ -0,0 +1,40 @@ +title = "如何开启客户端加密特性" + +date = "2022-07-20" + +tags = ["如何开启客户端加密特性"] + +archives = "2022-07" + +author = "张翠娉" + +summary = "如何开启客户端加密特性" + +img = "/zh/post/zhangcuiping/title/img.png" + +times = "14:20" + ++++ + +# 如何开启客户端加密特性? + +**背景介绍**: + +在创建列加密密钥时,提示客户端加密特性未开启,那么如何开启呢? + +**报错内容**: + +``` +MogDB=# CREATE COLUMN ENCRYPTION KEY a_cek WITH VALUES (CLIENT_MASTER_KEY = a_cmk, ALGORITHM = AEAD_AES_256_CBC_HMAC_SHA256); +ERROR(CLIENT): disable client-encryption feature, please use -C to enable it. +MogDB=# +``` + +**解决办法**: + +在连接数据库时,可使用-C参数打开密态数据库开关。 + +```bash +gsql -d postgres -p xxx -C +``` + -- Gitee