First you need to disable the safe_mode in my.cnf file
Then stop the Mysql service
Kill all the running process for the Mysql and start it in Safe mode
Quote:
killall -e -9 mysql
safe_mysqld --skip-grant-tables &
|
Reset the password with the following command
Quote:
|
mysqladmin -u root flush-privileges password "newpassword"
|
Restart mysql server
Quote:
service mysql restart
or
/etc/init.d/mysql start
|
Test the Mysql server by entering the root password.