I have a MySQL user (InnoDB engine) and I was wondering what would be the safe privileges to provide it? Currently, I have granted him permission to access a specific database and these privileges:
SELECT, INSERT, UPDATE, DELETE, CREATE, INDEX, ALTER, CREATE TEMPORARY TABLES
But since this is InnoDB, I was wondering if I need to explicitly grant LOCK TABLES privileges to this user? Also I'm not sure that I even need to provide CREATE TEMPORARY TABLES for it. Could you help me to find out what privileges I should provide? Hibernate will have access to this user, so I also wondered what would be enough to work properly?
source share