Root password

I changed the mySQL root password, and now I can’t connect to myPhp admin page, the access was denied. How can i change my root password to default or how can i change the password setting used in config.inc.php?