code: public synchronized void stop() throws ManagedProcessException {
          if (mysqldProcess.isAlive()) {
              logger.debug("Stopping the database...");
              mysqldProcess.destroy();
              logger.info("Database stopped.");
          } else {
              logger.debug("Database was already stopped.");
          }
      }
docs: Stops the database.
  
  @throws ManagedProcessException if something fatal went wrong