public static void dropDatabase(final String dbName) {
        doWithRootConnection(ThrowingConsumer.unchecked(rootConn -> {
            try (final Statement statement = rootConn.createStatement()) {
                statement.executeUpdate("DROP DATABASE `" + dbName + "`;");
            }
        }));


    }
Verify there is a connection to the database on the root account.
stroom-test-common/src/main/java/stroom/test/common/util/db/DbTestUtil.java