UNIX BLOG
Blog for NIX system based administrators
How to change Forgotten Mysql root Password
To reset forgotten root password in Linux(Ubuntu,Kubuntu,debian,redhat,centos,fedora) you need to do the following things:
mysqld_safe --skip-grant-tables
mysql --user=root mysql
update user set Password=PASSWORD('new-password') where user='root';
flush privileges;
exit;
Tags: change mysql password, forgotten password, linux root, mysql, reset
Leave a Reply