/usr/local/etc/rc.d/mysql-server stop
mysqld_safe --skip-grant-tables &
mysql -u root
use mysql;
update user set password=PASSWORD("121212") where User='root';
flush privileges;
/usr/local/etc/rc.d/mysql-server start