分类目录归档:系统维护

mysql5 BSD6 ports安装加入中文字符集支持

使用port安装默认是没有中文字符集gbk的,以下方法可以加入中文支持: [code] #cd /usr/ports/databases/mysql51-server/ #make deinstall clean #rm /var/db #cd /usr/ports/databases/mysql51-client/ #make deinstall clean #reboot #cd /usr/ports/databases/mysql51-server/ #make WITH_CHARSET=gbk WITH_XCHARSET=all WITH_COLLATION=gbk_chinese_ci WITH_PROC_SCOPE_PTH=yes BUILD_OPTIMIZED=yes BUILD_STATIC=yes SKIP_DNS_CHECK=yes WITHOUT_INNODB=yes PTHREAD_LIBS=-lthr install clean #cd /usr/ports/databases/mysql51-client/ #make WITH_CHARSET=gbk WITH_XCHARSET=all WITH_COLLATION=gbk_chinese_ci WITH_PROC_SCOPE_PTH=yes BUILD_OPTIMIZED=yes BUILD_STATIC=yes SKIP_DNS_CHECK=yes WITHOUT_INNODB=yes … 继续阅读

发表在 系统维护 | 留下评论

sed

      2005-02-17 sed What is sed? Sed stands for Stream EDitor. It is called this because input flows through the program to standard out (this output is generally redirected to a file). It is also called a non-interactive … 继续阅读

发表在 系统维护 | 2 条评论