Skip to content

Instantly share code, notes, and snippets.

@fmarani
Created August 2, 2010 13:14
Show Gist options
  • Save fmarani/504630 to your computer and use it in GitHub Desktop.
Save fmarani/504630 to your computer and use it in GitHub Desktop.
notepad
CREATE USER 'username'@'localhost' IDENTIFIED BY '...';
GRANT ALL PRIVILEGES ON *.* TO 'username'@'localhost';
GRANT SELECT, LOCK TABLES on Project_app_production.* to 'user'@'localhost';
SHOW GRANTS FOR 'root'@'localhost';
select * from mysql.user;
---
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment