WL#10441: Add mysqld_safe-functionality to server

Affects: Server-8.0   —   Status: Complete

Re-implement parts of the logic currently found in the mysqld_safe script inside the server. Including

  • find the full path to executable
  • find basedir (mysql_home) from this
  • set sharedir and messages dir
  • provide short-cuts for the --initialize and --daemonize options
  • improve usage of error log during startup
  • improve feedback given to users when starting as a daemon (to facilitate integration into the various service management systems)

BUG#75343 is fixed by this worklog.

User Documentation