Monday, May 23, 2011

MySQL FreeBSD Install

#
# pw groupadd mysql
# mkdir /server1/
# mkdir /server1/etc/
# chown -R mysql:mysql /server1/
# cp my.cnf /server1/etc/
# nano -w  /etc/hosts
127.0.0.1 localhost db1
# /usr/local/bin/mysql_install_db --defaults-extra-file=/server1/etc/my.cnf &
# echo "mysql_enable="YES" >> /etc/rc.conf
#

No comments: