2029 件中 1541 - 1550 件を表示
« 前の 10 件 | 次の 10 件 »
Displaying posts with tag: MySQL (reset)
MySQL Server Version ReferenceでMySQL5.0以降の各バージョン(リビジョン)差異を俯瞰する

JUGEMテーマ:コンピュータ

MySQLも5.0以降、すでに5.1, 5.5がメインで使われる時期になり、気の早い(もしくは先進的な機能を使いたい)人にとっては、5.6の利用も検討すべき今日この頃です。

MySQLでは多くのオプションやサーバ変数がありますが、バージョンによっては既に廃止予定(deprecated)になっていたり、特定のバージョンで新規に追加されたものなどあります。これらをざっくりみるためには、以下のドキュメントが便利です。

MySQL Server Version Reference

以下のような章立てになっています。

[さらに読む]
ソート中断(Sort Aborted)の原因を知る(MySQL 5.5の場合)

JUGEMテーマ:コンピュータ

MySQLではソート処理が中断されると"Sort Aborted"がエラーログに残されます。しかしながら、その原因は複数のケースがあるものの、エラーメッセージには詳細な情報がなく、原因の特定が難しい状況でした。(下記テキストはMySQL Practice Wikiより)

・ソートバッファを割り当てるためのメモリが足りない。
・テンポラリファイルが用いられる場合にtmpdirの空き領域が足りない。
・ソート中にそのスレッドがKILLされた。
・デッドロックやlock-wait-timeoutによりトランザクションが終了してしまった。

[さらに読む]
オートコミットをデフォルトオフにする(MySQL 5.5の場合)

JUGEMテーマ:コンピュータ

MySQLでオートコミットはデフォルトでオンになっています。これをオフにするには、セッション毎に以下のコマンドを実行するか、

mysql> set autocommit=0;

接続時にコマンドを実行するinit-connectオプションで以下のように設定する必要がありました。(MySQL 4.1以降)

init_connect='set autocommit=0'

しかしながら、前者はクライアント接続毎にいちいち設定する必要があり、後者はSUPER権限を持つユーザの接続には適用されませんでした。

MySQL 5.5のGA(MySQL …

[さらに読む]
[MySQL][Spider][VP]Spider-2.26 VP-0.15リリース

Spiderストレージエンジンのバージョン 2.26(beta)とVartical Partitioningのバージョン 0.15(beta)をリリースしました。
Spiderストレージエンジンは、database sharding用のストレージエンジンです。
http://spiderformysql.com/
Vertical Partitioningストレージエンジンは、テーブルのVertical Partitioning用のストレージエンジンです。
http://launchpad.net/vpformysql

最近、launchpadにバイナリファイルをアップすると失敗するようになったので、以下にバイナリファイルをアップしております。
お手数ではございますが、バイナリのダウンロードにはこちらをご利用ください。

[さらに読む]
Mysql Semi-sync article and test report URL

最近想使用google的semi-sync,问了把google大神,给出的一些比较好的讨论和测试报告。
http://datacharmer.blogspot.com/2011/05/price-of-safe-data-benchmarking-semi.html
http://openlife.cc/blogs/2011/may/drbd-and-semi-sync-shootout-large-server
http://datacharmer.blogspot.com/2010/11/testing-mysql-55-semi-synchronous.html

mysqldump --single-transaction に --flush-logs をつけてはいけない

(いまだに時々ブクマされていたりしますが、これはバグで MySQL 5.5.21 以降では修正されています。)

mysqldump は MySQL のデータのバックアップを取得するコマンドです。

mysqldump に --single-transaction を指定すると一貫性を保持したバックアップを取得することができます*1
この時に mysqldump が発行しているクエリは次のような感じです。

[mysqldump --single-transaction DB名]

SET SESSION TRANSACTION ISOLATION LEVEL REPEATABLE READ
START TRANSACTION WITH CONSISTENT SNAPSHOT
UNLOCK TABLES
DB選択
テーブルからデータの読み込み

「START TRANSACTION WITH CONSISTENT …

[さらに読む]
[MySQL][mroonga]mroonga-0.7リリース

groongaストレージエンジン(mroonga)のバージョン 0.7(beta)をリリースしました。
groongaストレージエンジンは、全文検索用のストレージエンジンです。
http://mroonga.github.com/

今回の主な変更は以下です。
・ラッパーモードを追加しました。
 ラッパーモードは、任意のストレージエンジンに全文検索機能を付加する利用方法で、InnoDBなどと組み合わせて利用することが可能です。
 ラッパーモードはこれまでのモード(ストレージモード)とは、特性が異なる部分があるため、利用の際には以下のドキュメントをご確認ください。
 http://mroonga.github.com/userguide/wrapper.html

[さらに読む]
Why the mysql write speed drop down when we set sync_binlog=1

when we set sync_binlog=1,the mysql writing speed will drop down,why?
following is root cause:

sync_binlog=1 is sometimes required for critical applications. 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).
the cause of the performance problem that one of the big causes is architecture of writing to binlog, "extending file per
each commit"
Currently binlog file is not pre-allocated, but extending per each transaction
commit. In contrast, InnoDB log file is pre-allocated and file size is not
changed. In other words, binlog adopts appending architecture, InnoDB log
adopts overwriting architecture.
For most of operating systems/file systems (including Solaris ufs and Linux …

[さらに読む]
How to use google tcmalloc on mysql

1)install libunwind
CPPFLAGS="-I /usr/local/libunwind/include"
LDFLAGS="-L/usr/local/libunwind/lib"
export CPPFLAGS
export LDFLAGS
./configure --prefix=/usr/local/google-malloc --enable-shared --enable-static --enable-frame-pointers

make && make install
2)add the export comand to mysqld_safe file and restart mysql service.
export LD_PRELOAD=/usr/local/google-malloc/lib/libtcmalloc.so

3)give the tcmalloc and malloc test report.

Oracle Announces New Oracle VM Template for MySQL Enterprise Edition

News Facts
Enabling more efficient and lower cost deployments of virtualized MySQL environments, Oracle today announced the first Oracle VM Template for MySQL Enterprise Edition.The new Oracle VM Template for MySQL helps eliminate manual configuration efforts and risks by providing a pre-installed, pre-configured and certified software stack that includesOracle VM Server for x86Oracle Linux with the  …

[さらに読む]
2029 件中 1541 - 1550 件を表示
« 前の 10 件 | 次の 10 件 »