Reset forgotten MySql Password

Stop Mysql Service
service mysql stop

Start MySql in Safe Mode
mysqld_safe --skip-grant-tables

Reset password
mysql --user=root mysql
update user set Password=PASSWORD('new-password') where user='root';
flush privileges;

Stop Safe Mode
ps aux | grep Mysql
kill MySql-Prozess-Pid

Start MySql Service
service mysql stop

Leave a Reply

Your email address will not be published. Required fields are marked *


Get every new post on this blog delivered to your Inbox.

Join other followers: