sudo /usr/local/mysql/support-files/mysql.server stop sudo /usr/local/mysql/bin/mysqld_safe --skip-grant-tables
sudo /usr/local/mysql/bin/mysql -u root mysql>use mysql update user set authentication_string=password('newpassword') where user='root';