no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
| — | unix_socket [2021/09/21 05:41] (current) – created norman | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Plugin ' | ||
| + | The " | ||
| + | |||
| + | |||
| + | then follow: | ||
| + | |||
| + | < | ||
| + | mysqld_safe --skip-grant-tables & | ||
| + | mysql -uroot</ | ||
| + | This will completely stop mysql, bypass user authentication (no password needed) and connect to mysql with user " | ||
| + | |||
| + | Now, in mysql console, go using mysql administrative db: | ||
| + | |||
| + | < | ||
| + | To reset root password to mynewpassword (change it at your wish), just to be sure of it: | ||
| + | |||
| + | < | ||
| + | And this one will overwrite authentication method, remove the unix_socket request (and everything else), restoring a normal and working password method: | ||
| + | |||
| + | < | ||
| + | Exit mysql console: | ||
| + | |||
| + | < | ||
| + | Stop and start everything related to mysql: | ||
| + | |||
| + | < | ||
| + | kill -9 $(pgrep mysql) | ||
| + | / | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | That's it. | ||