How to FreeBSD 10 Install Mysql Database Server Command

Fig.03: Installing mysql database server

Fig.03: Installing mysql database server

Port installation:

cd /usr/ports/databases/mysql56-server
 
make install clean

Start mysql server:

echo 'mysql_enable="YES"' >> /etc/rc.conf
 
service mysql-server start

Setup mysql root account password. Please note that mysql root and system root are different accounts:

/usr/local/bin/mysqladmin -u root password 'your-password-here'

Examples and usage: How To Install Apache, MySQL, PHP stack on FreeBSD Unix Server