Community journal

The latest from the MySQL community

Ideas, releases, practical guides, and perspectives from the people building with MySQL.

Follow the feed
Showing entries 2521 to 2530 of 3188 « Previous | Next »
[mysql]知らなかった。mysql の -o オプション

 mysql クライアントコマンドにはたくさんのオプションがあります*1。 その中には使ったことのないオプションもいっぱいあって、私はこの -o オプションというのを知りませんでした。 -o, --one-database Only update the default database. This is useful for skipping updates to other database in the update log.  指定したスキーマだけをターゲットにできるもののようで、更新 ...

[mysql]InnoDB PluginとXtraDBのオプションのメモ
  • mysql 5.1.42
  • InnoDB Plugin 1.0.6
  • XtraDB 1.0.6-9

の場合。

InnoDB -> InnoDB Pluginで増えたオプション

innodb_adaptive_flushing       ON
innodb_change_buffering        inserts
innodb_file_format     Antelope
innodb_file_format_check       Antelope
innodb_io_capacity     200
innodb_old_blocks_pct  37
innodb_old_blocks_time 0
innodb_read_ahead_threshold    56
innodb_read_io_threads 4
innodb_replication_delay       0
innodb_spin_wait_delay 6
innodb_stats_sample_pages      8
innodb_strict_mode     OFF
innodb_use_sys_malloc  ON
innodb_write_io_threads        4

InnoDB Plugin -> XtraDBで増えたオプション

innodb_adaptive_checkpoint     estimate
innodb_checkpoint_age_target   0
innodb_dict_size_limit 0
innodb_enable_unsafe_group_commit      0
innodb_expand_import   0
innodb_extra_rsegments 0
innodb_extra_undoslots OFF
innodb_fast_recovery   ON …
[さらに読む]
MySQL Connector/J 5.1.11リリース

MySQLのJDBCドライバ、Connector/Jの5.1.11がリリースされました。今回は機能変更が1件、バグ修正が10件となっています。 今回修正されたバグのうち、Bug #48172について簡単に解説しておきます。2009年5月にMySQL Connector/Jにおける大量INSERTのチューニングというエントリで接続プロパティrewriteBatchedStatementsを用いたチューニング手法をご紹介しましたが、Bug #48172はこの機能に関する不具合です。曰く、 INSERT INTO test (col1, col2) VALUES(?, ?) VALUESのあとにスペースを空けずに括弧を書いてしまうと、SQLの書き換えが行われないというものです。ちょっとしょんぼり(´・ω・`)してしまいますね。 とりあえず、直ってよかったです。

死んだプロセスのスタックトレースを自動収集するデーモンを書いた (そして、その出力を開発者に送ってあげると喜ばれるよという話)

死んだプロセス (あるいは kill したプロセス) の core イメージから自動的にスタックトレースを収集するデーモンを書いたので、これをセットアップしてサーバにインストールしとくといいかもです (bt_cores at master from kazuho’s kaztools - GitHub)。Linux のみ対応*1。使い方は bt_cores --help とするか、perl Makefile.PL && make install して man bt_cores。

具体的にいうと、Q4M とか Incline とか kazuho product が落ちたり固まったりしたらスタックトレース送ってくれると、私がうれしいです …

[さらに読む]
[event][devsumi][mysql]今年もデブサミ開催! (2/18, 19)

 今年も翔泳社主催の通称「デブサミ」(痩せていても参加できる)こと「Developers Summit 2010」が開催されます。 ◆Developers Summit 2010 オフィシャルサイト http://codezine.jp/devsumi/2010  デブサミには毎年テーマが決められていて(第1回のテーマが見つけられなかったけど、最初はなかったのかな)、この変遷を辿ると時代が見えて面白いです。(以下、回数勘違いしてたらすいません) 第1回 (2003) 第2回 (2004) 10 ...

[MySQL][Spider]Spider-2.12リリース

Spiderストレージエンジンのバージョン 2.12(beta)をリリースしました。
Spiderストレージエンジンは、database sharding用のストレージエンジンです。
http://spiderformysql.com/

今回の主な変更は以下です。
 MariaDBに対応しました。
・サーバパラメータに「spider_connect_mutex」「spider_connect_retry_count」「spider_connect_retry_interval」を追加しました。
 これらのパラメータは、接続処理が激しくなった際に起こる接続失敗に対応するためのものです。(この現象は特に「spider_conn_recycle_mode=0」を利用している場合に発生します)

それ以外の変更については、ダウンロードドキュメント中の「99_change_logs.txt」をご確認下さい。
…

[さらに読む]
Q4M 0.9.2 prerelease avaiable fixing data corruption on 32bit systems

Thanks to a user of Q4M, I have found a bug that would likely lead to data corruption on 32bit versions of Q4M.  64bit versions are unaffected.

Q4M by default uses mmap(2) to read from data files.  On 32bit systems, it tries to map max. 1GB per each table into memory using mmap.  When mmap fails to map memory due to low memory, Q4M falls back to file I/O to read the data.

However there was a bug in handling the response from mmap, that led to reading corrupt data from database files when mmap(2) failed after the size of the underlying file was grown / shrunk by Q4M.  And since Q4M writes back the corrupt data into the database file when rows are being consumed, the bug will likely destroy the database files.

I have fixed the bug and have uploaded Q4M 0.9.2, into the prerelease directory at …

[さらに読む]
そろそろMySQL Workbench 5.2についてひとこと言っておくか。

MySQLといえば、コマンドラインで操作するしかできないようなイメージが世間では定着してしまっている気がするのだが、実はちゃんとGUIも存在する。

MySQLはかねてより(MySQL AB時代から)オフィシャルなGUIツールとして、管理ツールとしてMySQL Administrator、SQL文を編集&実行するためのQuery Browser、そして他のRDBMSからの移行ツールであるMigration Toolkitという3つのツールを提供していたのだが、先日それらのツールに対して開発終了のお知らせが出てしまった。

オフィシャルなGUIツールはもう無くなるのか?!!と思ってしまわれるかも知れないが、どうか焦らないで頂きたい。

現在、MySQLが提供するGUIツールとして活発に開発が続けられているものとして、MySQL …

[さらに読む]
[mysql]EU が Oracle の Sun 買収を承認

 本日ついに EU が、Oracle の Sun Microsystems 買収を承認しました。 ○EUの発表 http://europa.eu/rapid/pressReleasesAction.do?reference=IP/10/40&format=HTML&aged=0&language=EN&guiLanguage=en ○ロイター電: http://www.reuters.com/article/idUSBFA00103020100121 http:/ ...

[mysql]MariaDBでスレッドプーリングを使うには

configureオプションで--with-libeventを指定してbuildしないとスレッドプーリングは使えナッシブルです!

とりあえず自分のmacbookには以下のようにして入れてます。

./configure --prefix=/usr/local/mariadb --with-charset=utf8 --with-extra-charsets=complex --enable-thread-safe-client --enable-local-infile --with-pic --with-big-tables --with-readline --with-embedded-server --with-plugins=all --without-docs --with-libevent --with-debug
make
sudo make install

linux用のバイナリパッケージは--with-libevent付きなので展開してそのまま使って大丈夫。

んで、デフォルトのthread_handlingはone-thread-per-connectionなので、--thread_handling=pool-of-threadsオプション付きでサーバ起動すればスレッドプーリングで使える。