文档首页> MapReduce服务 MRS> 组件操作指南(LTS版)> 使用Doris> Doris常见问题> MySQL客户端连接Doris报错“Read timed out”
更新时间:2024-05-28 GMT+08:00

MySQL客户端连接Doris报错“Read timed out”

现象描述

在MySQL客户端连接Doris报错:

java.net.SocketTimeoutException: Read timed out

原因分析

Doris服务端响应较慢。

处理步骤

使用MySQL客户端连接Doris数据库时,在命令中新增“connect_timeout”参数,默认值为10秒,命令如下:

mysql -u数据库登录用户 -p数据库登录用户密码 -P数据库连接端口 -hDoris FE实例IP地址 --connect_timeout=120