![]() |
LINUX |
mysql5cfg.sh
・mysql-5.1.58で使用しています
・hosts.allow(tcp_wrappers)で制御します
・デフォルトの文字セットをbinaryに設定しています
・CFLAGS="-march=pentium3" (CPU最適化オプション)
・CXXFLAGS="-march=pentium3" (CPU最適化オプション)
・該当しない場合は指定しない
・--with-sslオプションでバンドルされている yaSSL ライブラリを使用します
・OpenSSLを選択するには、オプションを --with-ssl=path として与えます
・--with-plugins=innobaseオプションでinnodbを組み込みます
:mysql5cfg.sh
#!/bin/bash # CXX=gcc CFLAGS="-O2 -march=pentium3 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 \ -D_LARGEFILE_SOURCE -fno-strict-aliasing -fPIC" CXXFLAGS="-O2 -march=pentium3 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 \ -D_LARGEFILE_SOURCE -fno-strict-aliasing -fPIC \ -felide-constructors -fno-exceptions -fno-rtti" export CXX CFLAGS CXXFLAGS # ./configure --sysconfdir=/etc \ --localstatedir=/var/lib/mysql \ --disable-dependency-tracking \ --enable-shared \ --enable-thread-safe-client \ --enable-local-infile \ --enable-largefile \ --with-charset=binary \ --with-extra-charsets=complex \ --with-pic \ --with-named-thread-libs="-lpthread" \ --with-unix-socket-path=/var/lib/mysql/mysql.sock \ --with-mysqld-user="mysql" \ --with-zlib-dir=bundled \ --with-libwrap \ --without-debug \ --with-big-tables \ --with-ssl=/usr \ --with-plugins=innobase \ --with-embedded-server \ --with-readline # CXX="" CFLAGS="" CXXFLAGS="" export CXX CFLAGS CXXFLAGS
![]() |
Copyright(c) 528p.com All Rights Reserved. |

