public MySqlSourceBuilder<T> hostname(String hostname) {
        this.configFactory.hostname(hostname);
        return this;
    }
<pre>{@code
MySqlSource
    .<String>builder()
    .hostname("localhost")
    .port(3306)
    .databaseList("mydb")
    .tableList("mydb.users")
    .username(username)
    .password(password)
    .serverId(5400)
    .deserializer(new JsonDebeziumDeserializationSchema())
    .build();
}</pre>

Copied from com.ververica:flink-connector-mysql-cdc-2.3.0, added with Inlong metrics support
inlong-sort/sort-flink/sort-flink-v1.15/sort-connectors/mysql-cdc/src/main/java/org/apache/inlong/sort/mysql/source/MySqlSourceBuilder.java