6月 142009
 

すぐ忘れる脳の為に、よくやる MySQL 設定メモ。

configure オプション

./configure \
--prefix=/usr/local/mysql-5.1.35 \
--with-unix-socket-path=/usr/local/mysql-5.1.35/tmp/mysql.sock \
--with-charset=utf8 \
--with-extra-charsets=all \
--enable-thread-safe-client \
--with-plugins=ndbcluster, innobase, partition \
--with-readline \
--with-debug=full

with-readline = 日本語入力など。
with-debug = デバッグしたいときなど。

my.cnf

max_connections=300
connect_timeout=86400
interactive_timeout=86400
debug=d:t:o,/usr/local/mysql-5.1.35/tmp/mysqld.trace

max_connections = 接続受付数
connect_timeout = 接続タイムアウトまでの秒数
interactive_timeout = 接続先から何も要求がない状態タイムアウトまでの秒数
debug = デバッグトレースなど。

関連エントリー:

MySQL + GDB + 解析

autotools + with-mysql

Mac Leopard Apache + MySQL + PHP

CORESERVER + MySQL + 文字コード

MySQL 5.1.41 + 勉強

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <img localsrc="" alt=""> <pre lang="" line="" escaped="" highlight="">