暂无图片
oceanbase使用demo部署的如何修改密码
我来答
分享
Asky
2023-08-28
oceanbase使用demo部署的如何修改密码

oceanbase-ce:
servers:
- 127.0.0.1
global:
home_path: /home/admin/oceanbase-ce
... # 省略部分配置项
log_disk_size: 13G
root_password: mysql


我按照官网的在配置文件加入了root_password: mysql,重启后,发现还是可以使用无密码登录

[root@host134 bin]# obclient -h 127.0.0.1 -P2881 -uroot@sys -Doceanbase -A
Welcome to the OceanBase. Commands end with ; or \g.
Your OceanBase connection id is 3221489185
Server version: OceanBase_CE 4.2.0.0 (r100010022023081817-0bdf1c0c5674e88c5ae9a8d0ae4f8077465d7fae) (Built Aug 18 2023 17:32:49)

Copyright (c) 2000, 2018, OceanBase and/or its affiliates. All rights reserved.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

obclient [oceanbase]> 


请问如何配置,让密码生效呢?

我来答
添加附件
收藏
分享
问题补充
1条回答
默认
最新
Asky

重新试了下,可以了

暂无图片 评论
暂无图片 有用 0
打赏 0
回答交流
Markdown


请输入正文
提交
问题信息
请登录之后查看
邀请回答
暂无人订阅该标签,敬请期待~~