When we use the mysql database, we must use some procedure or
functions to dispose the data or monitor the database,so we must
write the procedures, but if the logic is very complex,we must to
debug it, but now mysql can't provide the better tools,so google
it and find two tools.
one is dbforge studio for mysql, the professional edition's
price less than $50.
the other is myProcDebugger,you can get the code from
link,it's open source tool.
| picture(1) |
| picture(2) |
MYSQL5.5 announce the innodb performance improve high, we can get
the oracle test report as picture(1). with the excited mood,I
test the Mysql5.1.50 buid in/plugin and mysql5.5.8,but the result
is discouraging, my test report as picture(2). my server and
configure info as following:Cpu/mem:Intel(R) Xeon(R) E5620 …
Get the Handlesocket info by Yoshinori blog,I test it by perl client
and get the expected report.
a)Process=16 and request=1000000*16
QPS:130429Mysql server Cpu(s): 29.0%us, 20.6%sy
b)Process=32 and request=1000000*32
QPS:268294Mysql server Cpu(s): 58.1%us, 27.8%sy
c)Process=64 and request=1000000*64
QPS:291960Mysql server Cpu(s): 58.8%us, 28.7%sy
my server configuration as following:
Intel(R) Xeon(R) E5620 X86-64 2.40GHz
2 CPU x 8 Cores/CPU
Linux 2.6.9
32 GB RAM
CentOS release 5.3
when we use the mysql replication, If the sync_binlog
is not set to 1, there is a risk of corruption of the binary log
if the
server crashes. But, in many filesystems/OS, sync_binlog=1 is
currently way
too slow (sometimes 2-4 times slower than set to 0). we can
solve these by following solutions:
1)wait the mysql version upgrade to 5.6,we can get the
information from http://forge.mysql.com/worklog/task.php?id=4925
2)change the linux file system to solaris ZFS or use Linux XFS.
we can get the information from peter's URL:
http://www.mysqlperformanceblog.com/2009/01/21/beware-ext3-and-sync-binlog-do-not-play-well-together/
3)we want to change the OS or file system,we can …
when when use master1-master2-slave1 structure,if master1 crash,
the slave1 can automatic switch to master2,how to do? refer to
http://onlamp.com/lpt/a/6549 and I realize it
by SQL.you can get the code from:
http://forge.mysql.com/tools/tool.php?id=306
JUGEMテーマ:コンピュータ
最近Windows上でmysqlコマンドラインツールを頻繁に使っている私です。
mysqlコマンドラインツールは、様々な起動オプションやコマンドを持っていますので、
なかなか全て覚えきれません。今日は対話的に利用する際に便利な二つのC(シー)を紹介します。
1. ¥c
2. Ctrl+c
1. ¥c
mysqlコマンドラインで、コマンドを入力していて「実は全然思っていたのではなかった、取り消したい」
と思うときに使います。例えば、
mysql> alter table t1 add columnくらいまで、タイプして「あれー、そもそもalter
tableじゃなかった」
…
なんか cmake 失敗するなーと思ったら、実行権限がないディレクトリが含まれててその中のファイルが読めないのでよしなに実行権限あたえて cmake してください。
cd /usr/local/src wget "http://launchpad.net/spiderformysql/spider-2.x/2.24-for-5.5.8/+download/mysql-5.5.8-spider-2.24-vp-0.13-hs-1.0.tgz" tar zxvf mysql-5.5.8-spider-2.24-vp-0.13-hs-1.0.tgz cd mysql-5.5.8-spider-2.24-vp-0.13-hs-1.0 chmod +x storage/spider/hs_client cmake -DCMAKE_INSTALL_PREFIX=/usr/local/mysql-5.5.8-spider -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci -DWITH_PIC=1 . make make install cd /usr/local ln -nfs mysql-5.5.8-spider mysql cd mysql ./scripts/mysql_install_db --user=kamipo
/usr/local/mysql/bin/mysqld_safe & wget "http://launchpad.net/spiderformysql/spider-2.x/2.24-for-5.5.8/+download/spider-src-2.24-for-5.5.8.tgz" tar zxvf spider-src-2.24-for-5.5.8.tgz mysql -u root -v < install_spider.sql…[さらに読む]
Spiderストレージエンジンのバージョン 2.24(beta)とVartical Partitioningのバージョン
0.13(beta)をリリースしました。
Spiderストレージエンジンは、database sharding用のストレージエンジンです。
http://spiderformysql.com/
Vertical Partitioningストレージエンジンは、テーブルのVertical
Partitioning用のストレージエンジンです。
http://launchpad.net/vpformysql
今回の主な変更は以下です。
Spider
・MySQL 5.5 対応
・handlersocket対応
handlersocketから、Spiderを経由してさらにhandlersocketを呼び出すことが可能になりました。これにより、Spiderによりshardingされたデータベースにhandlersocketでアクセスできるようになります。
…
このところ、KDEの進化が著しい。先月の終わり頃にKDE 4.6がリリースされたのだが、前回のバージョン4.5は去年の8月だったので、5ヶ月ちょっとでのバージョンアップとなる。KDEは4.5でかなり品質が向上したように思うのだが、4.6では心踊る新機能が目白押しだ。その中で、特に筆者の目を引いた新機能がひとつある。それは、KateSQL(Kate用SQLクライアントプラグイン)だ。
…
[さらに読む]
JUGEMテーマ:コンピュータ
誰から何言われても(?) 数値はNUMBER型一本でお願いします!
と硬派だったOracleも、ふと気がつけば10gよりBINARY_FLOAT,
BINARY_DOUBLEというデータ型が用意されました。
Oracle Database に格納可能なデータ型 (SHIFT the
Oracle)
当然NUMBER型と違い固定小数点型データではないので、誤差は生じますが「誤差出てもいい!」という場合の効率重視のためだろうなー、と想像していたところ、ちょうど下記のような記事にあたりました。
Using BINARY_FLOAT and BINARY_DOUBLE
…