In order to change MySQL root password first stop service

Start MySQL in safe mode

Login

Change password

Restart service

Finally check the new password:

 

 

Source: https://www.elastix.org/community/threads/mysql-password.98656