public static String getCheckDatabase(String dbName) {
        final StringBuilder sqlBuilder = new StringBuilder()
                .append("SELECT schema_name ")
                .append(" FROM information_schema.schemata ")
                .append("WHERE schema_name = '")
                .append(dbName)
                .append("';");
        LOGGER.info("check database sql: {}", sqlBuilder);
        return sqlBuilder.toString();
    }
Build SQL to check whether the database exists.

@param dbName MySQL database name
@return the check database SQL string
inlong-manager/manager-service/src/main/java/org/apache/inlong/manager/service/resource/sink/mysql/MySQLSqlBuilder.java