No, you didn't misunderstand, that is precisely how I wanted it, but using GRANT, a DB has to have been created in the first place to grant that user the right perms, but I need to have the perms so that even if the user hasn't yet created a DB, he/she only sees an empty list when using 'show databases;' and when he/she creates the first DB (regardless of what name the user chooses for the DB) and then subsequent DB's, he/she can only see those that were created by that user, and if that user has created only 1 DB, and then uses 'drop database <name>;' which would result in an empty list when viewed, much like when a hosting company allows creation of DB's.
If it is possible, how would it be done?, I know enough mysql to create, drop, show, etc etc, but 'granting' is a bit more advanced.
Last edited by Usalabs; 02-08-2012 at 08:46 PM.
|