I have a database where I would like users to be able to create new users. That is achievable via GRANT CREATE USER as follows:
grant create user on *.* to foo;
This works great and foo can create users. My problem is that the line above works if run as root, but does not work if run as a normal user, even if such user already has the CREATE USER privilege.
In short, normal users cannot delegate the ability to create users. I have been searching far and wide for any particular privilege you need to be able to do this, and I’m beginning to think it’s something that only root can do, although I have found no evidence of this in the MySQL documentation.
The question: how can I allow a normal user to let new users create users?
Try to run query after grant: