Mysql – Secure MySQL-Server completely (disable ability to reset root-password)

MySQLpasswordSecurity

is there a way to secure a mysql-server so no one can reset a password via –init-file-startup?

there should only be a:

  • "root" user (password not known to anyone else than person a)
  • "system" user (no password, full access to one database restricted to
    localhost-connection)
  • "reader" user (password, read only access to the "one" database and
    no host-restrction)

and absolutely no way to bypass this setting.

i did not find a way till now – but maybe there is a hidden one.

thank you!

Best Answer

As indicated there is no option.

The person that has the ability to trigger the mysqld with --init-file is either root or the mysql user who can overwrite all of the mysqldatadir including all permission tables of the mysql. That is why there isn't even a considered option to achieve this.