private MysqldResource createMysqldResource() {
        if (LOG.isDebugEnabled()) {
            LOG.debug("=============== Starting Embedded MySQL using these parameters ===============");
            LOG.debug("baseDatabaseDir : " + baseDatabaseDir);
            LOG.debug("databaseName : " + databaseName);
            LOG.debug("host : localhost (hardcoded)");
            LOG.debug("port : " + port);
            LOG.debug("username : root (hardcode)");
            LOG.debug("password : (no password)");
            LOG.debug("=============================================================================");
        }

        Map<String, String> databaseOptions = new HashMap<String, String>();
        databaseOptions.put(MysqldResourceI.PORT, Integer.toString(port));

        MysqldResource mysqldResource = new MysqldResource(new File(baseDatabaseDir, databaseName));
        mysqldResource.start("embedded-mysqld-thread-" + System.currentTimeMillis(), databaseOptions);

        if (!mysqldResource.isRunning()) {
            throw new RuntimeException("MySQL did not start.");
        }

        LOG.info("MySQL started successfully @ {}", System.currentTimeMillis());
        return mysqldResource;
    }