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/04/02 21:56] – luke7858 | users_permissions [2024/05/23 07:26] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
===Showing GRANTS for a user=== | ===Showing GRANTS for a user=== | ||
<sxh bash> | <sxh bash> | ||
- | SHOW GRANTS FOR ‘user’@’x.x.x.x'; | + | SHOW GRANTS FOR 'user'@'x.x.x.x'; |
+ | </ | ||
+ | |||
+ | |||
+ | ==== Database manipulation ==== | ||
+ | <sxh bash> | ||
+ | SELECT........read only | ||
+ | |||
+ | INSERT........insert rows/data | ||
+ | |||
+ | UPDATE........change inserted rows/data | ||
+ | |||
+ | DELETE........delete drop rows of data | ||
+ | </ | ||
+ | === Table Manipulation === | ||
+ | <sxh bash> | ||
+ | Table manipulation: | ||
+ | |||
+ | CREATE | ||
+ | DROP | ||
+ | ALTER | ||
</ | </ | ||
\\ | \\ | ||
Line 8: | Line 28: | ||
<sxh bash> | <sxh bash> | ||
- | GRANT ALL PRIVILEGES ON databasename.* TO ‘user’@’x.x.x.x'; | + | GRANT ALL PRIVILEGES ON databasename.* TO 'user'@'x.x.x.x'; |
</ | </ | ||
\\ | \\ | ||
Line 14: | Line 34: | ||
<sxh bash> | <sxh bash> | ||
- | GRANT ALL PRIVILEGES ON *.* TO ‘user’@’x.x.x.x'; | + | GRANT ALL PRIVILEGES ON *.* TO 'user'@'x.x.x.x' |
+ | </ | ||
+ | |||
+ | \\ | ||
+ | ====REMEMBER To Flush Privileges==== | ||
+ | <sxh bash> | ||
+ | flush privileges; | ||
</ | </ | ||
\\ | \\ |
users_permissions.1428011789.txt.gz · Last modified: 2024/05/23 07:26 (external edit)