---
title: "连接 OceanBase 集群时报错 Access denied for user &#x27;xxxx&#x27;@&#x27;xxxx&#x27; (using password: YES)-OceanBase数据库使用指南"
description: "了解OceanBase数据库在实际应用中关于连接 OceanBase 集群时报错 Access denied for user &#x27;xxxx&#x27;@&#x27;xxxx&#x27; (using password: YES)相关的常见问题和使用技巧，帮助您快速解决连接 OceanBase 集群时报错 Access denied for user &#x27;xxxx&#x27;@&#x27;xxxx&#x27; (using password: YES)的难题。"
---
切换语言

- 中文站 - 简体中文
- International - English
- 日本站 - 日本語

划线反馈

# 连接 OceanBase 集群时报错 Access denied for user 'xxxx'@'xxxx' (using password: YES)

更新时间：2026-06-03 03:01

适用版本： V2.1.x、V2.2.x、V3.1.x、V3.2.x、V4.0.x、V4.1.x、V4.2.x 内容类型：Troubleshoot  

## 问题描述

通过 obproxy 连接 OceanBase 集群或者直连 OceanBase 数据库时，连接失败并且出现：`Access denied for user 'xxxx'@'xxxx' (using password: YES)`。

## 问题原因

出现该问题的常见原因有 2 个：

- 账户错误：OceanBase 数据库在验证账户时，账户组成格式为: "user@租户名#集群名" 或者 "user@租户名"，账户需要准确。
 - 密码错误。

## 解决方法

检查账户和密码，如果忘记，需要找到正确的账户和密码。

## 适用版本

OceanBase 数据库 V2.x，V3.x，V4.x 版本。

上一篇

[easy_connection_on_timeout_conn 的问题原因](https://www.oceanbase.com/knowledge-base/oceanbase-database-1000000000450150)

下一篇

[OBProxy 连接问题的排查步骤](https://www.oceanbase.com/knowledge-base/oceanbase-database-20000000153) ![有帮助](https://gw.alipayobjects.com/mdn/ob_asset/afts/img/A*y6ocSqN8cqsAAAAAAAAAAAAAARQnAQ)![无帮助](https://gw.alipayobjects.com/mdn/ob_asset/afts/img/A*BG9IQJyLHF8AAAAAAAAAAAAAARQnAQ)![反馈](https://gw.alipayobjects.com/mdn/ob_asset/afts/img/A*eTWdQKCRKHwAAAAAAAAAAAAAARQnAQ)[AI](https://www.oceanbase.com/obi) 咨询热线
