开发者社区 问答 正文

OceanBase数据库为啥登录不了?

OceanBase数据库为啥登录不了?
[admin@odp ~]$ obclient -h 192.168.2.131 -P 2883 -u root@sys#obcluster -p -c -A oceanbase
Enter password:
ERROR 1045 (42000): Access denied for user 'root'@'xxx.xxx.xxx.xxx' (using password: NO)
[admin@odp ~]$ obclient -h 192.168.2.131 -P 2883 -u root@sys#obcluster -p -c -A oceanbase
Enter password:
ERROR 1045 (42000): Access denied for user 'root'@'xxx.xxx.xxx.xxx' (using password: YES)

展开
收起
嘟嘟嘟嘟嘟嘟 2024-08-27 22:21:23 192 分享 版权
来自: OceanBase
1 条回答
写回答
取消 提交回答
  • 请参考以下步骤,修改用户密码后,重新登录。

    1、使用管理员用户登录到集群相应的租户。

    2、修改用户root 的密码。

    ALTER USER 'root' IDENTIFIED BY '**8***';
    Query OK, 0 rows affected
    

    3、再次使用 root用户登录集群的 MySQL 租户。

    ——参考链接

    2024-08-28 08:11:13
    赞同 60 展开评论