I’ve written previously about use cases where having accounts which cannot be used to establish client
connections are useful. There are various hacks to accomplish
this with legacy versions (insert invalid password hash into
mysql.user
table, etc.), and we introduced the
mysql_no_login
authentication
plugin for this very purpose. Now as of MySQL 5.7.6, account locking gets native support through
the ACCOUNT LOCK
clause of CREATE USER
and ALTER USER
commands. This post revisits the use
cases which drove this feature and the implementation
details.
Use Cases
Security …
[Read more]