Answer the question
In order to leave comments, you need to log in
How to reset mysql password?
Doing: sudo service mysql stop
then: sudo mysqld --skip-grant-tables --user=root , after that:
mysql -u root and :
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/ var/run/mysqld/mysqld.sock' (2)
What is the reason? If you do sudo service mysql start, it connects, but you can't log in due to an incorrect password.
Answer the question
In order to leave comments, you need to log in
Try: mysqladmin -u root password NEWPASSWORD
If it doesn't help: https://www.cyberciti.biz/tips/recover-mysql-root-...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question