cd /usrportsnap fetch extractcd /usr/ports/databases/mysql55-servermake install clean BATCH=yeschown -R mysql /var/db/mysql/chgrp -R mysql /var/db/mysql/echo 'mysql_enable="YES"' >> /etc/rc.conf/usr/local/bin/mysqld_safe --user=mysql &/usr/local/etc/rc.d/mysql-server onestartrehashmysqlmysql> flush privileges;mysql> use mysql;mysql> update user set Password=Password('1234567'),Host='%' where User='root' and Host='localhost';mysql> quit/usr/local/etc/rc.d/mysql-server onerestartreboot