mysql_usercreate
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| mysql_usercreate [2015/04/02 21:52] – created luke7858 | mysql_usercreate [2024/05/23 07:26] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| <sxh bash> | <sxh bash> | ||
| + | Use % for wildcard host. Accessible from any locations. E.g | ||
| + | <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.1428011540.txt.gz · Last modified: 2024/05/23 07:26 (external edit)
