public String[] getDockerAdditionalArgs() {
        return new String[] {"-p", "3306:3306",
                          "-e", "MYSQL_ROOT_PASSWORD=" + getRootPassword(),
                          "-e", "MYSQL_DATABASE=" + dbName,
                          "-d"
        };
    }
Designed for MySQL external database connection
itests/util/src/main/java/org/apache/hadoop/hive/ql/externalDB/MySQLExternalDB.java