/usr/local/mysql/bin/mysqld_safe --skip-grant-tables & mysql> use mysql; mysql> update user set password=PASSWORD("root") where user='root'; service mysqld stop; service mysqld start; /usr/local/mysql/bin/mysql -u root -p