code: def _mysqld_process_checkpoint():
      '''this helper method checks if
      mysql server is available in the sys
      if not fires up one
      '''
      try:
          subprocess.check_output("pgrep mysqld", shell=True)
      except Exception:
          logger.warning(
              'Your mysql server is offline, fake2db will try to launch it now!',
              extra=extra_information)
          # close_fds = True argument is the flag that is responsible
          # for Popen to launch the process completely independent
          subprocess.Popen("mysqld", close_fds=True, shell=True)
          time.sleep(3f _mysqld_process_checkpoint():
      '''this helper method checks if
      mysql server is available in the sys
      if not fires up one
      '''
      try:
          subprocess.check_output("pgrep mysqld", shell=True)
      except Exception:
          logger.warning(
              'Your mysql server is offline, fake2db will try to launch it now!',
              extra=extra_information)
          # close_fds = True argument is the flag that is responsible
          # for Popen to launch the process completely independent
          subprocess.Popen("mysqld", close_fds=True, shell=True)
          time.sleep(3)
docs: this helper method checks if
      mysql server is available in the sys
      if not fires up one