MySQL/バージョン
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
単語検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
-MySQL関連のWikiへのリンク
--[[MySQL:http://wiki.gashimax.com/index.php?MySQL]]
--MySQL 5.1
--MySQL 5.4
--MySQL/InnoDB
--MySQL/エラー
--MySQL/クラスタリング
--MySQL/サーバ移動
--MySQL/チューニング
--MySQL/バージョン
--MySQL/バックアップ
--MySQL/プロファイリング
--MySQL/ベンチマーク
--MySQL/レプリケーション
--MySQL/ロック
----
*各バージョンの比較 [#u10c390f]
**MySQL 4.1.x [#p247bd33]
-[[日本語の取扱が4.0.x以前から大きく変わっている:http://w...
-サブクエリを実装
-日本語キャラクタセット cp932 に対応(v4.1.12より)
**MySQL 5.0.x [#w1ea8098]
-SQL 2003 準拠のストアドプロシージャ、ストアドファンクシ...
-トリガーを実装
-ビューを実装
-サーバサイドカーソル機能を実装
-情報スキーマを実装
-XA 分散・トランザクションの実装
-[[日本語キャラクタセット cp932 / eucjpms:http://www.mysq...
**比較表 [#i79572b7]
| ver. | charset | 日本語 | 日本語(機種依存文字) | mysq...
| 4.0.26 | ujis | ○ | ○ | 100 | 100 |
| 4.1.18 | ujis | ○ | × | 90 | 95 |
| 4.1.18 | cp932 | ○ | ○ | 90 | 95 |
| 5.0.19 | eucjpms | ○ | ○ | 75 | 13 |
CENTER:※ mysqlbenchは4.0.26を100としたときの数字
*各バージョンのパフォーマンス [#x3818175]
**ベンチマークテスト mysqlbench [#ed36820b]
***インストール [#ef700352]
***使用方法 [#fa96da97]
-MyISAM のテスト
./mysqlbench -i -U [user] -P [password] -E myisam test
./mysqlbench -U [user] -P [password] -E myisam test -c 1...
-InnoDB のテスト
./mysqlbench -i -U [user] -P [password] -E innodb test
./mysqlbench -U [user] -P [password] -E innodb test -c 1...
**MySQL 4.0 [#cb4787c9]
-テスト環境
--CPU:Pentium III (Coppermine) 1GHz x 2
--RAM:2GB
--HDD:IDE 20GB
-/etc/my.cnf
[mysqld]
port = 3306
socket = /tmp/mysql.sock
skip-locking
key_buffer = 16M
max_allowed_packet = 1M
table_cache = 64
sort_buffer_size = 512K
net_buffer_length = 8K
myisam_sort_buffer_size = 8M
default-character-set=ujis
:
innodb_buffer_pool_size = 1024M
innodb_additional_mem_pool_size = 128M
-MyISAMのベンチマークテスト結果
transaction type . . . : TPC-B (sort ...
scaling factor . . . : 1
number of clients . . : 10
number of transactions per client : 100
number of transactions actually processed : 1000/1000
tps (include connections establishing) . : 1050.883793
tps (exclude connections establishing) . : 1060.362177
-InnoDBのベンチマークテスト結果
transaction type . . . : TPC-B (sort ...
scaling factor . . . : 1
number of clients . . : 10
number of transactions per client : 100
number of transactions actually processed : 1000/1000
tps (include connections establishing) . : 666.529362
tps (exclude connections establishing) . : 671.839833
**MySQL 4.1 [#a9dd5571]
-テスト環境
--CPU:Pentium III (Coppermine) 1GHz x 2
--RAM:2GB
--HDD:IDE 20GB
-/etc/my.cnf
[mysqld]
port = 3306
socket = /tmp/mysql.sock
skip-locking
key_buffer = 16M
max_allowed_packet = 1M
table_cache = 64
sort_buffer_size = 512K
net_buffer_length = 8K
read_buffer_size = 256K
read_rnd_buffer_size = 512K
myisam_sort_buffer_size = 8M
skip-character-set-client-handshake
default-character-set=ujis
init-connect=SET NAMES ujis
:
innodb_buffer_pool_size = 1024M
innodb_additional_mem_pool_size = 128M
-MyISAMのベンチマークテスト結果
transaction type . . . : TPC-B (sort ...
scaling factor . . . : 1
number of clients . . : 10
number of transactions per client : 100
number of transactions actually processed : 1000/1000
tps (include connections establishing) . : 948.542517
tps (exclude connections establishing) . : 957.649851
-InnoDBのベンチマークテスト結果
transaction type . . . : TPC-B (sort ...
scaling factor . . . : 1
number of clients . . : 10
number of transactions per client : 100
number of transactions actually processed : 1000/1000
tps (include connections establishing) . : 633.153032
tps (exclude connections establishing) . : 637.083077
**MySQL 5.0 [#f6ec2ca3]
-テスト環境
--CPU:Pentium III (Coppermine) 1GHz x 2
--RAM:2GB
--HDD:IDE 20GB
-/etc/my.cnf
[mysqld]
port = 3306
socket = /tmp/mysql.sock
skip-locking
key_buffer = 16M
max_allowed_packet = 1M
table_cache = 64
sort_buffer_size = 512K
net_buffer_length = 8K
read_buffer_size = 256K
read_rnd_buffer_size = 512K
myisam_sort_buffer_size = 8M
skip-character-set-client-handshake
default-character-set=eucjpms
init-connect=SET NAMES eucjpms
:
innodb_buffer_pool_size = 1024M
innodb_additional_mem_pool_size = 128M
-MyISAMのベンチマークテスト結果
transaction type . . . : TPC-B (sort ...
scaling factor . . . : 1
number of clients . . : 10
number of transactions per client : 100
number of transactions actually processed : 1000/1000
tps (include connections establishing) . : 783.276729
tps (exclude connections establishing) . : 787.649653
-InnoDBのベンチマークテスト結果
transaction type . . . : TPC-B (sort ...
scaling factor . . . : 1
number of clients . . : 10
number of transactions per client : 100
number of transactions actually processed : 1000/1000
tps (include connections establishing) . : 80.727015
tps (exclude connections establishing) . : 80.771510
**参考URL [#fa73803a]
-[[ベンチマーク対決! MySQL 4.1.15 vs 5.0.15 どっちが速い...
-[[ベンチマーク追試:http://www.mysql.gr.jp/mysqlml/mysql/...
-[[PostgreSQLとMySQLのベンチマークテスト(2) - mysqlbench:...
*各バージョンの動作検証 [#lc268886]
※ 空欄は未検証
**MySQL 4.0 [#lf3027b1]
| OS | インストール方法 | インストール | 起動 | 日本語 | ...
| RHEL 3.0 | rpm | ○ | ○ | ○ | 過去のプロジェクトで確認済...
| RHEL 4.0 | rpm | ○ | ○ | ○ | データベースtest上にテーブ...
| Windows 2003 Server | インストーラ | ○ | ○ | ○ | USEN...
| Mac OS X | dmg | ○ | ○ | ○ | INNプロジェクトで確認済み |
**MySQL 4.1 [#lf3027b1]
| OS | インストール方法 | インストール | 起動 | 日本語 | ...
| RHEL 3.0 | rpm | | | | |
| RHEL 4.0 | rpm | ○ | ○ | △ | データベースtest上にテーブ...
| Windows 2003 Server | インストーラ | | | | |
| Mac OS X | dmg | | | | |
**MySQL 5.0 [#lf3027b1]
| OS | インストール方法 | インストール | 起動 | 日本語 | ...
| RHEL 3.0 | rpm | | | | |
| RHEL 4.0 | rpm | ○ | ○ | ○ | データベースtest上にテーブ...
| Windows 2003 Server | インストーラ | | | | |
| Mac OS X | dmg | | | | |
*各バージョンの設定 [#lc982359]
**MySQL 4.0 [#a1f80765]
**MySQL 4.1 [#k6ee608c]
1. /etc/my.cnf の下記該当部分を追記
[mysqld]
default-character-set=ujis
init-connect=SET NAMES ujis
[mysqld-4.1]
old-passwords
[mysqldump]
default-character-set=ujis
[mysql]
default-character-set=ujis
2. MySQLを再起動
3. mysql ログインし、下記SQLを実行し、結果を確認。
mysql> show variables like 'char%';
+--------------------------+----------------------------+
| Variable_name | Value |
+--------------------------+----------------------------+
| character_set_client | ujis |
| character_set_connection | ujis |
| character_set_database | ujis |
| character_set_results | ujis |
| character_set_server | ujis |
| character_set_system | utf8 |
| character_sets_dir | /usr/share/mysql/charsets/ |
+--------------------------+----------------------------+
**MySQL 5.0 [#m1e9ffb8]
1. /etc/my.cnf の下記該当部分を追記
[mysqld]
default-character-set=eucjpms
init-connect=SET NAMES eucjpms
[mysqld-5.0]
old-passwords
[mysqldump]
default-character-set=eucjpms
[mysql]
default-character-set=eucjpms
2. MySQLを再起動
3. mysql ログインし、下記SQLを実行し、結果を確認。
mysql> show variables like 'char%';
+--------------------------+----------------------------+
| Variable_name | Value |
+--------------------------+----------------------------+
| character_set_client | eucjpms |
| character_set_connection | eucjpms |
| character_set_database | eucjpms |
| character_set_filesystem | binary |
| character_set_results | eucjpms |
| character_set_server | eucjpms |
| character_set_system | utf8 |
| character_sets_dir | /usr/share/mysql/charsets/ |
+--------------------------+----------------------------+
終了行:
-MySQL関連のWikiへのリンク
--[[MySQL:http://wiki.gashimax.com/index.php?MySQL]]
--MySQL 5.1
--MySQL 5.4
--MySQL/InnoDB
--MySQL/エラー
--MySQL/クラスタリング
--MySQL/サーバ移動
--MySQL/チューニング
--MySQL/バージョン
--MySQL/バックアップ
--MySQL/プロファイリング
--MySQL/ベンチマーク
--MySQL/レプリケーション
--MySQL/ロック
----
*各バージョンの比較 [#u10c390f]
**MySQL 4.1.x [#p247bd33]
-[[日本語の取扱が4.0.x以前から大きく変わっている:http://w...
-サブクエリを実装
-日本語キャラクタセット cp932 に対応(v4.1.12より)
**MySQL 5.0.x [#w1ea8098]
-SQL 2003 準拠のストアドプロシージャ、ストアドファンクシ...
-トリガーを実装
-ビューを実装
-サーバサイドカーソル機能を実装
-情報スキーマを実装
-XA 分散・トランザクションの実装
-[[日本語キャラクタセット cp932 / eucjpms:http://www.mysq...
**比較表 [#i79572b7]
| ver. | charset | 日本語 | 日本語(機種依存文字) | mysq...
| 4.0.26 | ujis | ○ | ○ | 100 | 100 |
| 4.1.18 | ujis | ○ | × | 90 | 95 |
| 4.1.18 | cp932 | ○ | ○ | 90 | 95 |
| 5.0.19 | eucjpms | ○ | ○ | 75 | 13 |
CENTER:※ mysqlbenchは4.0.26を100としたときの数字
*各バージョンのパフォーマンス [#x3818175]
**ベンチマークテスト mysqlbench [#ed36820b]
***インストール [#ef700352]
***使用方法 [#fa96da97]
-MyISAM のテスト
./mysqlbench -i -U [user] -P [password] -E myisam test
./mysqlbench -U [user] -P [password] -E myisam test -c 1...
-InnoDB のテスト
./mysqlbench -i -U [user] -P [password] -E innodb test
./mysqlbench -U [user] -P [password] -E innodb test -c 1...
**MySQL 4.0 [#cb4787c9]
-テスト環境
--CPU:Pentium III (Coppermine) 1GHz x 2
--RAM:2GB
--HDD:IDE 20GB
-/etc/my.cnf
[mysqld]
port = 3306
socket = /tmp/mysql.sock
skip-locking
key_buffer = 16M
max_allowed_packet = 1M
table_cache = 64
sort_buffer_size = 512K
net_buffer_length = 8K
myisam_sort_buffer_size = 8M
default-character-set=ujis
:
innodb_buffer_pool_size = 1024M
innodb_additional_mem_pool_size = 128M
-MyISAMのベンチマークテスト結果
transaction type . . . : TPC-B (sort ...
scaling factor . . . : 1
number of clients . . : 10
number of transactions per client : 100
number of transactions actually processed : 1000/1000
tps (include connections establishing) . : 1050.883793
tps (exclude connections establishing) . : 1060.362177
-InnoDBのベンチマークテスト結果
transaction type . . . : TPC-B (sort ...
scaling factor . . . : 1
number of clients . . : 10
number of transactions per client : 100
number of transactions actually processed : 1000/1000
tps (include connections establishing) . : 666.529362
tps (exclude connections establishing) . : 671.839833
**MySQL 4.1 [#a9dd5571]
-テスト環境
--CPU:Pentium III (Coppermine) 1GHz x 2
--RAM:2GB
--HDD:IDE 20GB
-/etc/my.cnf
[mysqld]
port = 3306
socket = /tmp/mysql.sock
skip-locking
key_buffer = 16M
max_allowed_packet = 1M
table_cache = 64
sort_buffer_size = 512K
net_buffer_length = 8K
read_buffer_size = 256K
read_rnd_buffer_size = 512K
myisam_sort_buffer_size = 8M
skip-character-set-client-handshake
default-character-set=ujis
init-connect=SET NAMES ujis
:
innodb_buffer_pool_size = 1024M
innodb_additional_mem_pool_size = 128M
-MyISAMのベンチマークテスト結果
transaction type . . . : TPC-B (sort ...
scaling factor . . . : 1
number of clients . . : 10
number of transactions per client : 100
number of transactions actually processed : 1000/1000
tps (include connections establishing) . : 948.542517
tps (exclude connections establishing) . : 957.649851
-InnoDBのベンチマークテスト結果
transaction type . . . : TPC-B (sort ...
scaling factor . . . : 1
number of clients . . : 10
number of transactions per client : 100
number of transactions actually processed : 1000/1000
tps (include connections establishing) . : 633.153032
tps (exclude connections establishing) . : 637.083077
**MySQL 5.0 [#f6ec2ca3]
-テスト環境
--CPU:Pentium III (Coppermine) 1GHz x 2
--RAM:2GB
--HDD:IDE 20GB
-/etc/my.cnf
[mysqld]
port = 3306
socket = /tmp/mysql.sock
skip-locking
key_buffer = 16M
max_allowed_packet = 1M
table_cache = 64
sort_buffer_size = 512K
net_buffer_length = 8K
read_buffer_size = 256K
read_rnd_buffer_size = 512K
myisam_sort_buffer_size = 8M
skip-character-set-client-handshake
default-character-set=eucjpms
init-connect=SET NAMES eucjpms
:
innodb_buffer_pool_size = 1024M
innodb_additional_mem_pool_size = 128M
-MyISAMのベンチマークテスト結果
transaction type . . . : TPC-B (sort ...
scaling factor . . . : 1
number of clients . . : 10
number of transactions per client : 100
number of transactions actually processed : 1000/1000
tps (include connections establishing) . : 783.276729
tps (exclude connections establishing) . : 787.649653
-InnoDBのベンチマークテスト結果
transaction type . . . : TPC-B (sort ...
scaling factor . . . : 1
number of clients . . : 10
number of transactions per client : 100
number of transactions actually processed : 1000/1000
tps (include connections establishing) . : 80.727015
tps (exclude connections establishing) . : 80.771510
**参考URL [#fa73803a]
-[[ベンチマーク対決! MySQL 4.1.15 vs 5.0.15 どっちが速い...
-[[ベンチマーク追試:http://www.mysql.gr.jp/mysqlml/mysql/...
-[[PostgreSQLとMySQLのベンチマークテスト(2) - mysqlbench:...
*各バージョンの動作検証 [#lc268886]
※ 空欄は未検証
**MySQL 4.0 [#lf3027b1]
| OS | インストール方法 | インストール | 起動 | 日本語 | ...
| RHEL 3.0 | rpm | ○ | ○ | ○ | 過去のプロジェクトで確認済...
| RHEL 4.0 | rpm | ○ | ○ | ○ | データベースtest上にテーブ...
| Windows 2003 Server | インストーラ | ○ | ○ | ○ | USEN...
| Mac OS X | dmg | ○ | ○ | ○ | INNプロジェクトで確認済み |
**MySQL 4.1 [#lf3027b1]
| OS | インストール方法 | インストール | 起動 | 日本語 | ...
| RHEL 3.0 | rpm | | | | |
| RHEL 4.0 | rpm | ○ | ○ | △ | データベースtest上にテーブ...
| Windows 2003 Server | インストーラ | | | | |
| Mac OS X | dmg | | | | |
**MySQL 5.0 [#lf3027b1]
| OS | インストール方法 | インストール | 起動 | 日本語 | ...
| RHEL 3.0 | rpm | | | | |
| RHEL 4.0 | rpm | ○ | ○ | ○ | データベースtest上にテーブ...
| Windows 2003 Server | インストーラ | | | | |
| Mac OS X | dmg | | | | |
*各バージョンの設定 [#lc982359]
**MySQL 4.0 [#a1f80765]
**MySQL 4.1 [#k6ee608c]
1. /etc/my.cnf の下記該当部分を追記
[mysqld]
default-character-set=ujis
init-connect=SET NAMES ujis
[mysqld-4.1]
old-passwords
[mysqldump]
default-character-set=ujis
[mysql]
default-character-set=ujis
2. MySQLを再起動
3. mysql ログインし、下記SQLを実行し、結果を確認。
mysql> show variables like 'char%';
+--------------------------+----------------------------+
| Variable_name | Value |
+--------------------------+----------------------------+
| character_set_client | ujis |
| character_set_connection | ujis |
| character_set_database | ujis |
| character_set_results | ujis |
| character_set_server | ujis |
| character_set_system | utf8 |
| character_sets_dir | /usr/share/mysql/charsets/ |
+--------------------------+----------------------------+
**MySQL 5.0 [#m1e9ffb8]
1. /etc/my.cnf の下記該当部分を追記
[mysqld]
default-character-set=eucjpms
init-connect=SET NAMES eucjpms
[mysqld-5.0]
old-passwords
[mysqldump]
default-character-set=eucjpms
[mysql]
default-character-set=eucjpms
2. MySQLを再起動
3. mysql ログインし、下記SQLを実行し、結果を確認。
mysql> show variables like 'char%';
+--------------------------+----------------------------+
| Variable_name | Value |
+--------------------------+----------------------------+
| character_set_client | eucjpms |
| character_set_connection | eucjpms |
| character_set_database | eucjpms |
| character_set_filesystem | binary |
| character_set_results | eucjpms |
| character_set_server | eucjpms |
| character_set_system | utf8 |
| character_sets_dir | /usr/share/mysql/charsets/ |
+--------------------------+----------------------------+
ページ名: