The following error message is displayed during MySQL migration: "Unable to connect to the database server. Cause: connect timed out."
The table has a large data volume, and the source end uses the where statement to filter data. However, the column is not an index column or the column values are not discrete. As a result, the entire table is scanned during the query, causing a JDBC connection timeout. As shown in Figure 1, the c_date field is not an index column.
If the failure persists because the data is not discrete, perform 2 to 4 and increase the JDBC timeout duration.