mysql_usercreate
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
mysql_usercreate [2015/04/02 21:53] – luke7858 | mysql_usercreate [2024/05/23 07:26] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 4: | Line 4: | ||
Use % for wildcard host. Accessible from any locations. E.g | Use % for wildcard host. Accessible from any locations. E.g | ||
<sxh bash> | <sxh bash> | ||
+ | \\ | ||
=== Setting user password === | === Setting user password === | ||
<sxh bash>SET PASSWORD FOR ' | <sxh bash>SET PASSWORD FOR ' | ||
+ | \\ | ||
=== Deleting a user === | === Deleting a user === | ||
<sxh bash> | <sxh bash> | ||
+ | |||
+ | \\ | ||
+ | \\ | ||
+ | |||
+ | === Checking MySQL Password === | ||
+ | Sometimes you forget the password for a user. | ||
+ | This is annoying as hell. You have a list of old passwords but you are able to log in as root | ||
+ | You can use the following to confirm if the password is correct: | ||
+ | |||
+ | <sxh bash> | ||
+ | mysql> select if(password(' | ||
+ | +-----------------------------------------------------+ | ||
+ | | if(password(' | ||
+ | +-----------------------------------------------------+ | ||
+ | | YES | | ||
+ | +-----------------------------------------------------+ | ||
+ | 1 row in set (0.00 sec) | ||
+ | </ |
mysql_usercreate.1428011629.txt.gz · Last modified: 2024/05/23 07:26 (external edit)