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 10:45] – 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> | ||
| - | === Deleting a user === | + | ==== Database manipulation  | 
| + | <sxh bash> | ||
| + | SELECT........read only | ||
| - | <sxh bash>drop user ‘luke’@’x.x.x.x';</ | + | INSERT........insert rows/data | 
| + | |||
| + | UPDATE........change inserted rows/data | ||
| + | |||
| + | 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'@'x.x.x.x'; | ||
| + | </ | ||
| + | \\ | ||
| + | ===Granting ALL Privileges on ALL dbs === | ||
| + | |||
| + | <sxh bash> | ||
| + | GRANT ALL PRIVILEGES ON *.* TO ' | ||
| + | </ | ||
| + | |||
| + | \\ | ||
| + | ====REMEMBER To Flush Privileges==== | ||
| + | <sxh bash> | ||
| + | flush privileges; | ||
| + | </ | ||
| + | |||
| + | \\ | ||
users_permissions.1427712334.txt.gz · Last modified: 2024/05/23 07:26 (external edit)
                
                