throw new RuntimeException("Port already in use: " + config.port);
}
if(mysqldResource.isRunning()) {
throw new RuntimeException("MySQL already running!");
}
mysqldResource.start("test-mysqld-thread", database_options);
if(!mysqldResource.isRunning()) {
throw new RuntimeException("MySQL did not start successfully!");
}
log.info("MySQL is running.");
resource = mysqldResource;