Apr
11
2008
0

MySQL Installation (ports)

1,099 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.

Written by Pipo in: FreeBSD & Linux | Tags: , ,
Jan
24
2008
0

Search, Install, Deinstall Ports

1,353 views

Search

# cd /usr/ports/
# make search name=php5-mysql | less

Install

# make install clean 

Deinstall

# make deinstall clean 

Written by Pipo in: FreeBSD & Linux | Tags:
Jan
24
2008
0

Update Ports

1,475 views

สั่ง update ports index

# cd /usr/ports
# /usr/local/bin/cvsup -g -L 2 -h cvsup.jp.freebsd.org /usr/share/examples/cvsup/ports-supfile
# make fetchindex

ตรวจสอบเวอร์ชั่นของ software ที่ลงในเครื่องกับ เวอร์ชั่นปัจจุบัน

# pkg_version -v

Written by Pipo in: FreeBSD & Linux | Tags:
Page 1 of 11

Powered by WordPress | Aeros Theme | TheBuckmaker.com WordPress Themes