I'm creating a SAAS website, and every new account creation should have :
- a new database created for it dynamically from my php code ,
- a new MySQL user created dynamically from my PHP code and granted with privileges over the new database.
My question is: How can I create a MySQL user who have privileges to do these actions , ( create db, create users, grant privileges).
But It's important to note: I want this MySQL user to not be able to show or manipulate any other database not created by him.
Note: I have a server with WHM access.