/etc/init.d/mysql stop
mysqld_safe --user=mysql --skip-grant-tables --skip-networking &
mysql -uroot mysql
update user set password=PASSWORD('netpassword') where user='root';
flush privileges;
quit
###########################################################
mysql>update mysql.user set password=PASSWORD('hello') where user='root';