Difference between revisions of "User Management"
Jump to navigation
Jump to search
(Created page with "==User Management== <blockquote> ===Creating user 'test' with password 'test'=== <code>> CREATE USER test test</code> <p>As global permissions, you can set 'none', 'read...") |
(No difference)
|
Revision as of 13:05, 6 December 2010
Contents
User Management
Creating user 'test' with password 'test'
> CREATE USER test testAs global permissions, you can set 'none', 'read', 'write', 'create' and 'admin':
Revoking all global permissions from user 'test'
> GRANT none TO testValid local permissions are 'none', 'read' and 'write':
Granting write permission on database 'factbook' to user 'test'
> GRANT write ON factbook TO testNote that local permissions overwrite global permissions. As a consequence, the 'test' user will only be allowed to access (i.e., read and write) the 'factbook' database. If no local permissions are set, the global rights are inherited.
Admin permissions are needed to review the user permissions:
Showing global permissions
> SHOW USERSShowing local permissions on database 'factbook'
> SHOW USERS ON factbook