Using MySQL 5.6 or 5.7, hosted in AWS RDS or the Docker MySQL container , I would like to create the user with the least privileges, for example, with the name creator , which can do the following:
- Create a new database.
- Create a new user.
- Grant the new user SELECT and INSERT permission for all tables in the new database.
I would prefer that the creator user does not have access to existing databases, for which he was not responsible for the creation.
Is this achievable?
My research so far shows that for such a creator user, global SELECT and INSERT permissions for a MySQL instance may be required, but this seems excessive.
source share