Resetting Mysql Root Password: Red Hat and Centos: If You Need To Do This On A Debian System, Check Out This Post
Resetting Mysql Root Password: Red Hat and Centos: If You Need To Do This On A Debian System, Check Out This Post
If you've forgotten your MySQL root password (or are involved with some nefarious activity), here is how you can reset that password on a Red at (R !L) system or a "ent#S system$ Stop MySQL$ root# service mysqld stop
Reset the password$ mysql> update mysql.user set password=P !!"#$%&'(our)ewPass"*$%'+ w,ere -ser=.root./ mysql> flus, privileges/ e0it/
Log out of MySQL and stop the Safe Mode$ root# service mysqld stop
Log into MySQL with your new password$ root# mysql -u root -p
1nter password2 mysql> %he a&ove info is for a Red at system, "ent#S, or Scientific Linu' setup( If you need to do this on a )e&ian system, chec* out this post(