users_permissions
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
users_permissions [2015/03/30 18:28] – luke7858 | users_permissions [2024/05/23 07:26] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | === Mysql User Creation | + | ===Showing GRANTS for a user=== |
+ | <sxh bash> | ||
+ | SHOW GRANTS FOR ' | ||
+ | </ | ||
- | <sxh bash> | ||
- | === Setting user password | + | ==== Database manipulation |
+ | <sxh bash> | ||
+ | SELECT........read only | ||
- | <sxh bash>SET PASSWORD FOR ' | + | INSERT........insert rows/data |
- | === Deleting a user === | + | UPDATE........change inserted rows/data |
- | <sxh bash>drop user 'luke' | + | DELETE........delete drop rows of data |
+ | </ | ||
+ | === Table Manipulation === | ||
+ | <sxh bash> | ||
+ | Table manipulation: | ||
+ | |||
+ | CREATE | ||
+ | DROP | ||
+ | ALTER | ||
+ | </ | ||
+ | \\ | ||
+ | |||
+ | === Granting ALL Privileges on a db === | ||
+ | |||
+ | <sxh bash> | ||
+ | GRANT ALL PRIVILEGES ON databasename.* TO 'user'@' | ||
+ | </ | ||
+ | \\ | ||
+ | ===Granting ALL Privileges on ALL dbs === | ||
+ | |||
+ | <sxh bash> | ||
+ | GRANT ALL PRIVILEGES ON *.* TO 'user' | ||
+ | </ | ||
+ | |||
+ | \\ | ||
+ | ====REMEMBER To Flush Privileges==== | ||
+ | <sxh bash> | ||
+ | flush privileges; | ||
+ | </ | ||
+ | |||
+ | \\ |
users_permissions.1427740127.txt.gz · Last modified: 2024/05/23 07:26 (external edit)