○ mysql50cfg.sh

*mysql-5.0.67で使用しています
*hosts.allow(tcp_wrappers)で制御します
*デフォルトの文字セットをbinaryに設定しています
*CFLAGS="-march=pentium3" (CPU最適化オプション)
*CXXFLAGS="-march=pentium3" (CPU最適化オプション)
*該当しない場合は指定しない

:mysql50cfg.sh

#!/bin/bash
#
CXX=gcc
CFLAGS="-O2 -march=pentium3 -fno-strict-aliasing"
CXXFLAGS="-O2 -march=pentium3 -fno-strict-aliasing \
-felide-constructors -fno-exceptions -fno-rtti"
export CXX CFLAGS CXXFLAGS
#
./configure --sysconfdir=/etc \
--with-readline \
--with-libwrap \
--with-openssl \
--without-debug \
--enable-shared \
--with-bench \
--localstatedir=/var/lib/mysql \
--with-unix-socket-path=/var/lib/mysql/mysql.sock \
--with-mysqld-user="mysql" \
--with-extra-charsets=all \
--with-charset=binary \
--with-innodb \
--enable-local-infile \
--enable-largefile \
--enable-thread-safe-client \
--disable-dependency-tracking \
--with-named-thread-libs="-lpthread"
#
CXX=""
CFLAGS=""
CXXFLAGS=""
export CXX CFLAGS CXXFLAGS

mysql50cfg.sh

○ Copyright(c) 528p.com All Rights Reserved.