MySQL Installation (ports)
164 views# cd /usr/ports/databases/mysql51-server # make WITH_CHARSET=utf8 WITH_XCHARSET=all WITH_COLLATION=utf8_unicode_ci # make install && make clean # mysql_install_db (/usr/local/bin/mysql_install_db) # chown -R mysql /var/db/mysql/ # chgrp -R mysql /var/db/mysql/ # /usr/local/bin/mysqld_safe -user=mysql & edit /etc/rc.conf add this mysql_enable="YES" Change the password to root user # /usr/local/bin/mysqladmin -u root password new-password
Optionally, copy either my-huge.cnf, my-large.cnf, my-medim.cnf, my-small.cnf or my-innodb-heavy-4G.cnf (depending on the usage and utilization of MySQL server) as my.cnf
to /var/db/mysql which will enable you to tweak and change the configuration of server-specific MySQL server options by editing the file.