I have installed MySQL server 5 on redhat linux. I can\'t login as root so I can\'t change the root password.
mysql -u root -p Enter password:
Try do this:
mysql -u root
and then:
mysql> UPDATE mysql.user SET Password=PASSWORD('MyNewPass') -> WHERE User='root'; mysql> FLUSH PRIVILEGES;
Worked fine for me!