
# 使用MySQL客户端连接Doris数据库时报错"plugin not enabled"如何处理
#### 问题现象
使用MySQL客户端连接Doris数据库时报错：
```
ERROR 2059 (HY000): Authentication plugin 'mysql_clear_password' cannot be loaded: plugin not enabled
```
#### 原因分析
未启用mysql_clear_password插件。
#### 操作步骤
- 使用MySQL客户端连接Doris数据库时，在命令中新增"--enable-cleartext-plugin"，命令如下： **mysql --enable-cleartext-plugin -u** *数据库登录用户* **-p** *数据库登录用户密码* **-P** *数据库连接端口* **-h** *Doris FE实例IP地址*
  

- 在安装了MySQL客户端的节点执行以下命令启用mysql_clear_password插件，再重新连接Doris即可。 **export LIBMYSQL_ENABLE_CLEARTEXT_PLUGIN=1**
  
 
