Help Center/ MapReduce Service/ Component Operation Guide (LTS)/ Using Doris/ Common Issues About Doris/ What Should I Do If Error Message "Read timed out" Is Displayed When the MySQL Client Connects to the Doris?
Updated on 2024-10-25 GMT+08:00

What Should I Do If Error Message "Read timed out" Is Displayed When the MySQL Client Connects to the Doris?

Symptom

An error was reported when the MySQL client is connected to Doris.

java.net.SocketTimeoutException: Read timed out

Cause Analysis

The Doris server responds slowly.

Procedure

When you use the MySQL client to connect to the Doris database, run the following command with connect_timeout added (default value: 10 seconds):

mysql -uDatabase login user -pDatabase login user password -PDatabase connection port -hIP address of Doris FE instance --connect_timeout=120