MySQL Grants

Here’s a quick MySQL query that will setup grants for the specified user, on the specified database:

GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES, CREATE ROUTINE ON `user\_database`.* TO 'user_username'@'%' IDENTIFIED by 'password';
  • Digg
  • del.icio.us
  • Facebook
  • Reddit
  • Slashdot
  • Twitter
No Responses to “MySQL Grants”

Post a Comment