Archive for 12月, 2012

 

mysqlの日時,date,datetime,timestampの違い。

12月 7th, 2012

DATE, DATETIME, TIMESTAMPの違い。 http://dev.mysql.com/doc/refman/5.5/en/datetime.html The DATE type is used for values with a date part but no time part. MySQL retrieves and displays DATE values in ‘YYYY-MM-DD’ format. The supported range is ‘1000-01-01′ to ‘9999-12-31′. The DATETIME type is used for values that contain both date and time parts. MySQL retrieves and displays DATETIME values […]

Read full article | コメントは受け付けていません。

nagios check_http CRITICAL – Cannot make SSL connection.

12月 7th, 2012

オプションの形式を間違えていると CRITICAL – Cannot make SSL connection. が表示されるようです。 ***嘘でした。ただ-Cを付けていたので、このエラーが出ていただけでした。。。 オプションの値が間違えていると unknown | check_http: Timeout interval must be a positive integer – -s とちゃんとエラーが表示されるようです。

Read full article | コメントは受け付けていません。

mysql 5.5 innodb

12月 7th, 2012

mysql 5.1だと innodb pluginを入れないと行けないそうでが、5.5はinnodb標準だそうで。 いくつか記事を読むとパフォーマンスが違うそうで。 デフォルトのmy-huge.cnfは一カ所しか変わっていないようで $ diff /usr/share/mysql/my-huge.cnf ./my-huge.cnf 28c28 < skip-external-locking --- > skip-locking http://dev.mysql.com/doc/refman/5.1/en/replacing-builtin-innodb.html http://dev.mysql.com/doc/refman/5.5/en/innodb-configuration.html http://thinkit.co.jp/story/2011/11/25/2343?page=0,1 http://www.atmarkit.co.jp/fdb/rensai/dbwatch2011/dbwatch201101_01.html 5.1でinnodb pluginを利用する場合はこちらが参考になりそうです。 http://d.hatena.ne.jp/sh2/20110720 hdd ssd比較 http://d.hatena.ne.jp/sh2/20090907

Read full article | コメントは受け付けていません。

kyototycoon lua 複数取得を少し変えてみた。

12月 3rd, 2012

フラグデータを値データを分けて保管するためにluaを利用していたのですが getの時 function get_player( inmap, outmap )  local key = inmap.key  local dbid = tonumber(inmap.db)  local playerdb = kt.dbs[dbid];  local item = playerdb:get(key)  if item then    local ix = kt.mapload(item)    for k,v in pairs(ix) do      outmap[k]=v    end  end  return kt.RVSUCCESS end これで ktremotemgr script -port 30132 get_player key test db […]

Read full article | コメントは受け付けていません。