Is it possible for a user other than root to create a database?
GRANT SELECT, CREATE ON *.* TO \'myguy\'@\'thatmachine\' IDENTIFIED BY PASSWORD \'*12057DFA2
As Izkata and Evan Donovan have mentioned in the comments, the best way to achieve this is to give myguy
all privileges on the database myguy_%
.
You can do this with the following sql:
grant all privileges on 'myguy_%'.* to myguy@localhost identified by 'password';
This way you don't have to bother with other existing databases, and myguy
is able to create new databases to his heart's content.
The password field is what that particular user's password is when logging into MySQL itself. I'm not exactly sure what you mean when you say you wonder what privileges are missing. What exactly are you trying to do?
Absolutely you can. http://dev.mysql.com/doc/refman/5.1/en/privileges-provided.html#priv_create