Actions
Common Problems » History » Revision 6
« Previous |
Revision 6/7
(diff)
| Next »
Jessie Lee, 11/10/2017 03:59 PM
Common Problems¶
Updated about 7 years ago by Jessie Lee
- Table of contents
- Common Problems
Lost Mysql root password¶
Reset method 1¶
- stop mysql
- start mysql on command line with
mysqld --skip-grant-tables
- go into mysql console
- type FLUSH PRIVILEGES;
- SET PASSWORD FOR root@'localhost' = PASSWORD;
Reset method 2¶
- create file containing the following:
UPDATE mysql.user SET Password=PASSWORD('MyNewPass') WHERE User='root'; FLUSH PRIVILEGES;
- start mysql with mysqld_safe --init-file=/path/to/file &
- it should be reset!
fail2ban locked me out¶
Updated by Jessie Lee about 7 years ago · 6 revisions
Also available in: PDF HTML TXT
Go to top