• <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>
  • 推薦:讓你的MySQL數據庫徹底與中文聯姻

    發表于:2009-10-12來源:作者:點擊數: 標簽:數據庫mySQLMySQLMysqlmysql
    推薦:讓你的MySQL數據庫徹底與中文聯姻 MySQL數據庫 關鍵字:MySQL數據庫徹底與中文聯姻系統自帶的MySQL默認字符集不是gbk,因此給數據庫的推廣應用以及中文程序的 開發 帶來極大的不便,在沒完沒了的GBK和UTF8的轉換過程中消耗了我們無數的精力以及系統的資

    推薦:讓你的MySQL數據庫徹底與中文聯姻  MySQL數據庫

    關鍵字:MySQL數據庫徹底與中文聯姻系統自帶的MySQL默認字符集不是gbk,因此給數據庫的推廣應用以及中文程序的開發帶來極大的不便,在沒完沒了的GBK和UTF8的轉換過程中消耗了我們無數的精力以及系統的資源。經過摸索嘗試解決了中文支持問題,經驗與大家分享一下。 


    先將讓slack支持中文,方法可以看“linuxsir.org 之Slackware討論區”,然后重新編譯MySQL,原來系統MySQL的要先用卸載。 


    login:root
    shell> removepkg mysql
    shell> groupadd mysql
    shell> cd /app
    shell> mkdir mysql
    shell> chmod 744 mysql
    shell> useradd -G mysql -s /bin/bash –p /app/mysql mysql
    shell> chown -R mysql.mysql mysql
     

    下載MySQL4.x.x: 


    shell> gunzip < mysql-VERSION.tar.gz | tar -xvf -
    shell> cd mysql-VERSION
    shell> CFLAGS="-O3 -mcpu=pentium3" \
    CXX=gclearcase/" target="_blank" >cc \
    XXFLAGS="-O3 -mcpu=pentium3 -felide-constructors" \
    ./configure --prefix=/app/mysql \
    --with--charset=gbk \
    --with-extra-charsets="gbk gb2312 big5 utf8"\
    --with-unix-socket-path=/etc/mysql.sock \
    --enable-local-infile \
    --enable-thread-safe-client \
    --enable-assembler \
    --with-client-ldflags=-all-static \
    --with-mysqld-ldflags=-all-static

    //-mcpu 根據CPU類型優化編譯,可以讓你的MySQL表現更好!
    可選項目很多:i386, i486, i586, i686, pentium, 
    pentium-mmx, pentiumpro, pentium2, pentium3, pentium4, 
    k6, k6-2, k6-3, athlon, athlon-tbird, athlon-4, 
    athlon-xp,athlon-mp,winchip-c6, winchip2 , c3

    shell> make
    ------------------------------------------
    錯誤時候
    shell> make clean
    再回上一步
    ---------------------------------------
    shell> make install
    shell> cp support-files/my-medium.cnf /etc/my.cnf
    shell> cd /app/mysql
    shell> bin/mysql_install_db --user=root
    shell> chown -R root .
    shell> chown -R mysql var
    shell> chgrp -R mysql .
    shell> ./bin/mysqld_safe --user=root 
    --default-character-set=gbk &
    shell> ./bin/mysqladmin -u root password ’new-password’
    shell> ./bin/mysql -u root --default-character-set=gbk -p
    mysql> status
    ...
    Server characterset: gbk
    Db characterset: gbk
    Client characterset: gbk
    Conn. characterset: gbk
    .... 
     

    原文轉自:http://www.kjueaiud.com

    老湿亚洲永久精品ww47香蕉图片_日韩欧美中文字幕北美法律_国产AV永久无码天堂影院_久久婷婷综合色丁香五月

  • <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>