歡迎你
各類文章如有侵犯智慧財產權請來信告知--------607@dlps.tp.edu.tw
資料庫
作者:tseng 日期:2009-05-19
一、mysql
cd /usr/ports/databases/mysql50-server
make WITH_CHARSET=big5 WITH_XCHARSET=all install clean
cd /usr/ports/databases/php5-mysql
make install clean
vi /etc/rc.conf
mysql_enable="yes"
/usr/local/etc/rc.d/mysql-server start
設定sql
/usr/local/bin/mysql mysql
Update user SET password=password('XXXXXXXXXX') where user='root';
FLUSH PRIVILEGES;
二、PostgreSQL
cd /usr/ports/databases/postgresql82-server
make install clean
cd /usr/ports/databases/php5-pgsql
make install clean
vi /etc/rc.conf
postgresql_enable="YES"
...
cd /usr/ports/databases/mysql50-server
make WITH_CHARSET=big5 WITH_XCHARSET=all install clean
cd /usr/ports/databases/php5-mysql
make install clean
vi /etc/rc.conf
mysql_enable="yes"
/usr/local/etc/rc.d/mysql-server start
設定sql
/usr/local/bin/mysql mysql
Update user SET password=password('XXXXXXXXXX') where user='root';
FLUSH PRIVILEGES;
二、PostgreSQL
cd /usr/ports/databases/postgresql82-server
make install clean
cd /usr/ports/databases/php5-pgsql
make install clean
vi /etc/rc.conf
postgresql_enable="YES"
...
Tags: 資料庫