service mysql stop mysqld_safe --skip-grant-tables & mysql -uroot
use mysql; update user set password=PASSWORD("новый пароль") where User='root'; flush privileges; quit
service mysql stop service mysql start