/usr/local/mysql/bin/mysqld_safe --skip-grant-tables &
> use mysql;
> delete from user where User='root';
> insert into `user` VALUES ('localhost','root','','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y',
'Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','','','','',0,0,0,0);
> update user set password=password('mysql root 패스워드') where user='root';
> flush privileges;
> exit
killall mysqld
/etc/init.d/mysqld start