Guest User

Untitled

a guest
Mar 1st, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. \!h Simplest form - check current user's privileges:
  2. SHOW GRANTS;
  3. +-------------------------------------------------------------------------------------------------------------+
  4. | Grants for dave@localhost |
  5. +-------------------------------------------------------------------------------------------------------------+
  6. | GRANT USAGE ON *.* TO 'dave'@'localhost' IDENTIFIED BY PASSWORD '*2470C0C06DEE42FD1618BB99005ADCA2EC9D1E19' |
  7. | GRANT ALL PRIVILEGES ON `music`.* TO 'dave'@'localhost' |
  8. +-------------------------------------------------------------------------------------------------------------+
  9.  
  10. \!h Check another user's privileges:
  11. SHOW GRANTS FOR 'selina'@'localhost';
  12.  
  13. \!h mysqlaccess
  14. -- Quickly check what level of access a particular user has for a particular database
  15. -- example - partmusic's level of access for the 'music' db:
  16. mysqlaccess --user=root --password=root_password partmusic music
Add Comment
Please, Sign In to add comment