How to install mysql on FreeBSD 10.1

Install MySQL To install MySQL 5.6 using pkg, use this command: sudo pkg install mysql56-server Enter y at the confirmation prompt. This installs the MySQL server and client packages. To enable MySQL server as a service, add mysql_enable=“YES” to the /etc/rc.conf file. This sysrc command will do just that: sudo sysrc mysql_enable=yes Now start the MySQL server: sudo service mysql-server start Now that your MySQL database is running, you will want to run a simple security script that will remove some dangerous defaults and slightly restrict access to your database system. »