Install MySQL freeBSD
9 Juli 2009
1. Login sebagai root
2. muslim# 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 &
catatan : jika ada error lakukan command rehash
3. Jika proses konfigurasi selasai ganti user dan password
mysqladmin -u root password newpassword
4. Enable otomatis saat booting
echo ‘mysql_enable=”YES”‘ >> /etc/ rc.conf
5. Opsional aja
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.
6. Installasi selesai.
Sumber : telah dipraktekan dan running diserver localhost dari
http://www.mydigitallife.info/2006/04/13…
Entry Filed under: FreeBSD. Tag: install mysql freeBSD 7.2.