===========
Install freebsd in mysql
===========
cd /usr/ports/databases/mysql50-server
make install clean
mysql_install_db –user=mysql
chown -R mysql /var/db/mysql/
chgrp -R mysql /var/db/mysql/
/usr/local/bin/mysqld_safe -user=mysql &
Note: If you encounter Command not found error, use command rehash to update OS path environment variables.
# The port installation will put a script file mysql-server.sh in /usr/local/etc/rc.d which will has capability to start MySQL server. To enable MySQL server to start automatically after every FreeBSD server reboot
, enter the following command in CLI:
echo ‘mysql_enable=”YES”‘ >> /etc/ rc.conf
# By default, MySQL default super user account …