Change mysql root password

Changer le mot de passe root de mysql

en Bash:

mysqladmin -p -u root password toor

en mySQL:

UPDATE `mysql`.`user` SET `password` = PASSWORD("toor") WHERE `User`='root';

FLUSH PRIVILEGES;