visitor (0 QPoints)
  • FR
  • EN
  • NL
  • DE
  • ES
315 experts, 1193 registered users, 1659 questions already answered
European Experts Exchange, the very best site for high-quality IT solutions

New Improved Search!

 


05/10/2011 1h30 : Steve Jobs is dead, the father of Apple ][ is gone, we are all orphaned.

Databases :: MySql :: user with all privileges EXCEPT to 'mysql' db


By: Squibi U.S.A.  Date: 17/04/2003 00:00:00  English  Points: 50 Status: Answered
Quality : Excellent
Is it possible to create a user account with all privileges on all databases EXCEPT 'mysql' database, and no need to further update this acount's privileges even if a new database is created later on?

the following does NOT work
GRANT ALL PRIVILEGES ON *.* TO myNewAdminUser@localhost IDENTIFIED BY 'myAdminPassword';
By: VGR Date: 17/04/2003 19:04:00 English  Type : Comment
no

it's either :
GRANT ALL PRIVILEGES ON database.* TO...
and he'll be unable to access new databases

or
GRANT ... *.*
and he'll access mysql

I suggest the first solution
By: Squibi Date: 17/04/2003 19:10:00 English  Type : Comment
ok but what if u give a user the CREATE privilege...how do u specify between being able to create new databases and being able to create new tables inside that specific database?
By: VGR Date: 17/04/2003 21:46:00 English  Type : Answer
I think CREATE privileges apply inside the specified databases, so it's either a closed list or *
Only *.* will enable to create a new database
By: Squibi Date: 17/04/2003 22:01:00 English  Type : Comment
hum....there are so many features mySQL doesnt have which would be so easy to add...
By: VGR Date: 17/04/2003 22:31:00 English  Type : Comment
yes, but I really don't think they are necessary at all, not even useful 8-)

database "users" are usually just used by front-endscripts, so you need one user, and very restricted privileges...

Do register to be able to answer

EContact
browser fav
page generated in 300.750020 milliseconds

Why Google AdSense ads ?

compteur
 Ranking-Hits PageRank for this page