Más contenido relacionado
La actualidad más candente (19)
Similar a Windows環境でのMySQL (20)
Windows環境でのMySQL
- 1. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
Windows環境でのMySQL
Yoshiaki Yamasaki / 山﨑 由章
MySQL Senior Sales Consultant, Asia Pacific and Japan
- 2. Copyright © 2016, Oracle and/or its affiliates. All rights reserved.
Safe Harbor Statement
以下の事項は、弊社の一般的な製品の方向性に関する概要を説明するものです。
また、情報提供を唯一の目的とするものであり、いかなる契約にも組み込むことはでき
ません。以下の事項は、マテリアルやコード、機能を提供することをコミットメントするも
のではない為、購買決定を行う際の判断材料になさらないで下さい。
オラクル製品に関して記載されている機能の開発、リリースおよび時期については、
弊社の裁量により決定されます。
2
- 3. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. 3
The world's most popular open source database
世界で最も普及しているオープンソース データベース
- 4. Copyright © 2016, Oracle and/or its affiliates. All rights reserved.
MySQL Strengths
• 世界でもっとも普及している、オープンソースデータベース
• LAMPスタックの"M"
– Webアプリケーションを開発する時のデファクトスタンダード
• マルチプラットフォーム対応
– Windows, Linux, Solaris
• 高性能、軽量、高信頼
– 特にOLTP系の処理が得意
• 導入や運用の容易性
– ダウンロードからデータベース起動まで15分以内
– 管理不要なシンプルさ
4
- 5. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. 5
例) DB-Enginesによる調査結果
The world's most popular open source database
• http://db-engines.com/en/ranking
• データベースソフトウェアの普及度や人
気を、インターネット上の求人情報や職
務経歴上での経験、および検索エンジン
やSNSでの情報量を元に、毎月を作成し
公開。
• Oracle DBに続いて第2位
- 7. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. 7
Facebook
Application
MySQLは10億人以上のユーザーが使用する
Facebookを支えています。Facebookでは、数万
台のMySQLサーバーを使用し、典型的なサー
バーでは1~2TBのデータを保持しています。そ
して1秒当たり1120万行の更新処理と2.5億行
の参照処理をMySQLで処理しています。
Why MySQL?
「私達はMySQLよりも優れているものを見つけ
られていない」
Venkat Venkataramani, Director of Engineering ,
Facebook
- 8. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. 8
Twitter
Application
典型的な日では、1日当たり5億ツイート(つまり、
1秒当たり約5,700ツイート)以上をMySQLで処理
しています。2013年8月には、世界新記録とな
る143,199ツイート/秒を記録しました。
Why MySQL?
「パフォーマンス、レプリケーション、データ圧縮
機能、トランスポータブル表領域、監視&診断
機能が強化されているから」
Calvin Sun, Senior Engineering Manager,
Twitter
- 9. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. 9
YouTube
Application
YouTubeでは、毎月6億時間以上の動画が再生
されています。そして、毎分100時間の動画が
アップロードされています。あなたがYouTubeで
動画を見る場合、そのデータはMySQLから取得
されています。
Why MySQL?
"Anybody that tells you that MySQL does not
scale probably has not considered exactly how
to solve the problem."
Mike Salomon,
one of the original YouTube engineers
- 10. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. 10
MySQLの歴史
4.0
全文検索/GIS (MyISAM)
複数テーブルUPDATE/DELETE
組み込みライブラリ型サーバ
OracleMySQL Sun
3.23
MyISAM
InnoDB
レプリケーション
5.1
プラグガブル・
ストレージエンジン・
アーキテクチャ
パーティショニング
タスクスケジューラ
5.6
memcached API
UNDO表領域
Global Transaction ID
マルチスレッドスレーブ
オンラインALTER TABLE
トランスポータブル表領域
5.5
InnoDBがデフォルトに
準同期型レプリケーション
PERFORMANCE_SCHEMA
1.0-3.22以前
ストレージエンジン (ISAM, HEAP)
マルチスレッド
Windows対応/64bit対応
日本語文字コード (SJIS/UJIS)
5.0
ストアドプロシージャ
ストアドファンクション
カーソル/トリガ/ビュー
XAトランザクション
INFORMATION_SCHEMA
4.1
Unicode対応
サブクエリ
CSV, ARCHIVE
ndbcluster
1995 2000 2005 2010 2015
5.7
2015年10月21日 GA
新コストモデル オプティマイザ
ロスレス レプリケーション
マルチソース レプリケーション
グループ レプリケーション
全文検索CJK対応/GIS (InnoDB)
セキュリティ強化
データディクショナリ
NoSQLオプション
・ 1995年:スウェーデンにてMySQL AB設立
・(2005年:オラクルがInnobase Oyを買収)
・ 2008年:Sun MicrosystemsがMySQL ABを買収
・ 2010年:オラクルがSun Microsystemsを買収
- 11. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. 11
MySQL 5.5におけるWindows環境での著しい性能向上
MySQL 5.1.50
(InnoDB built-in)
MySQL 5.1.50
(InnoDB Plug-in)
MySQL 5.5.6
(New InnoDB)
SysBench Benchmark
Intel x86_64
4 CPU x 2 Cores/CPU
3.166 GHz, 8GB RAM
Windows Server 2008
540% performance gain
for MySQL 5.5 over 5.1.50; at scale
- 12. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. 12
MySQL 5.5におけるWindows環境での著しい性能向上
MySQL 5.1.50
(InnoDB built-in)
MySQL 5.1.50
(InnoDB Plug-in)
MySQL 5.5.6
(New InnoDB)
SysBench Benchmark
Intel x86_64
4 CPU x 2 Cores/CPU
3.166 GHz, 8GB RAM
Windows Server 2008
1560% performance gain
for MySQL 5.5 over 5.1.50; at scale
- 13. Copyright © 2016, Oracle and/or its affiliates. All rights reserved.
MySQL 5.7GA: イノベーションと品質
5.7で実装されたWorklogs : 365
5.7での新しいMTRテスト : 1,083
5.5GA以降の修正・改善対応 : 10,708
(2010/12/15のMySQL 5.5 GA以降)
13
2 x エンジニアスタッフ
3 x 品質管理スタッフ
2 x サポートスタッフ
- 14. Copyright © 2016, Oracle and/or its affiliates. All rights reserved.
Driving MySQL Innovation: 2010 - 2015
14
MySQL Enterprise Monitor 2.2
MySQL Cluster 7.1
MySQL Cluster Manager 1.0
MySQL Workbench 5.2
MySQL Database 5.5
MySQL Enterprise Backup 3.5
MySQL Enterprise Monitor 2.3
MySQL Cluster Manager 1.1
MySQL Enterprise Backup 3.7
Oracle Products Certifications
All GA! All GA! All GA!
Available Now!
Partial List of Releases Delivered
MySQL Windows Installer
MySQL Enterprise Security
MySQL Enterprise Scalability
MySQL Enterprise Audit
MySQL Cluster 7.2
MySQL Cluster Manager 1.3
MySQL Utilities
MySQL Workbench 6.0
MySQL Windows Tools
MySQL Database 5.6
MySQL Cluster 7.3
MySQL Cluster Manager 1.3
MySQL Enterprise Monitor 3.0
MySQL Fabric
MySQL Workbench 6.3
MySQL Cluster 7.4
MySQL Enterprise Firewall
MySQL Enterprise Backup 4.0
MySQL Router
MySQL Database 5.7
- 15. Copyright © 2016, Oracle and/or its affiliates. All rights reserved.
MySQL on Windows
• MySQL Installer for Windows
• MySQL Workbench
• MySQL Workbench Migration Wizard
– Microsoft SQL Server
– Microsoft Access
• MySQL for Visual Studio
• MySQL for Excel
• MySQL Notifier
• MySQL Connector/.Net
• MySQL Connector/ODBC
15
- 16. Copyright © 2016, Oracle and/or its affiliates. All rights reserved.
MySQL on Windows
16
- 17. Copyright © 2016, Oracle and/or its affiliates. All rights reserved.
MySQL Installer for Windows
• ウィザード形式でMySQLを
簡単にインストール
• 数分でインストール完了
• MySQL Database以外の関連製品も
まとめてインストール可能
– MySQL Workbench
– MySQL for Excel
– MySQL for Visual Studio
– Connector/.Net
– Connector/ODBC、など
17
- 18. Copyright © 2016, Oracle and/or its affiliates. All rights reserved.
MySQL Workbench
• 管理ツール
• SQLエディタ
• Performance Dashboard
• Visual Explain
• GIS Viewer
• ER図作成、フォワード/
リバースエンジニアリング、
など豊富な機能
18
データベースアーキテクト、開発者、DBA のための統合ビジュアルツール
商用版のみの機能:
DBドキュメント出力、データモデルの検証、
MySQL Enterprise Backup GUI、MySQL Enterprise Audit GUI
- 19. Copyright © 2016, Oracle and/or its affiliates. All rights reserved.
MySQL Workbench Migration Wizard
• 移行元
– Microsoft SQL Server, PostgreSQL,
Sybase ASE, Sybase SQL Anywhere,
SQLite, Microsoft Access, MySQL, and more
• オブジェクトとデータの移行
• MySQLバージョンアップグレード
(テスト環境用)
19
他DBからMySQLへの移行を支援
- 20. Copyright © 2016, Oracle and/or its affiliates. All rights reserved.
MySQL for Excel
• インストールすると、ExcelにMySQLの
アイコンが追加される
• 主な機能
– ExcelからMySQLのデータを取得する
– Excel上のデータをMySQLに格納する
– ExcelからMySQLのデータを変更する
• ピポットテーブル作成、サマリー
フィールド作成など、便利なオプション
もある
20
- 21. Copyright © 2016, Oracle and/or its affiliates. All rights reserved.
MySQL for Excel のシステム要件
• .NET Framework 4.0 (Client or Full Profile)
• Microsoft Office Excel 2007 以降 (Windows版)
• Visual Studio 2010 Tools for Office Runtime
– MySQL Installer でインストール可能
• MySQL Server への接続
21
※詳細情報(マニュアル)
MySQL for Excel Guide / Chapter 2 Installation
https://dev.mysql.com/doc/mysql-for-excel/en/mysql-for-excel-install.html
- 22. Copyright © 2016, Oracle and/or its affiliates. All rights reserved.
MySQL Databaseへの接続ドライバ
• MySQL for Visual Studio
• MySQL Connector/.Net
• MySQL Connector/ODBC
22
- 23. Copyright © 2016, Oracle and/or its affiliates. All rights reserved.
MySQL Databaseへの接続ドライバ(対応バージョン)
• MySQL for Visual Studio 1.2、MySQL Connector/.Net 6.9 の対応バージョン
– Visual Studio : 2008, 2010, 2012, 2013
– MySQL Server : 5.7, 5.6, 5.5, 5.1, 5.0
※詳細情報(マニュアル)
MySQL Connector/Net Developer Guide / 4.1 Installing and Configuring
https://dev.mysql.com/doc/connector-net/en/connector-net-visual-studio-install.html
• MySQL Connector/ODBC 5.3 の対応バージョン
– MySQL Server : 4.1以降
23
- 24. Copyright © 2016, Oracle and/or its affiliates. All rights reserved.
MySQL Notifier
• 主な機能
– システムトレイにあるインジケータを介してMySQL Databaseのステータスを確認
– MySQL Databaseの起動/停止
– MySQL Workbenchなどの起動
24
- 25. Copyright © 2016, Oracle and/or its affiliates. All rights reserved.
MySQL Enterprise High Availability
• MySQL Enterprise Edition(商用版)では、
MSFCによる高可用性構成もサポート
• 安価にサポートが受けられる
高可用性構成を構築可能
25
- 26. Copyright © 2016, Oracle and/or its affiliates. All rights reserved.
MySQL Workbench、MySQL for Excel デモ
26
- 27. Copyright © 2016, Oracle and/or its affiliates. All rights reserved.
MySQL 5.7における
パフォーマンスと拡張性の改良
27
- 28. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. 28
MySQL 5.7 is GA!
InnoDBの機能拡張:
Online&Bulk load オペレーション高速化
レプリケーションの改善と拡張
(multi-source, multi-threaded slaves等)
新しいオプティマイザコストモデル:
greater user control & better query performance
JSONのSupport
(ドキュメント管理サポート)
セキュリティの向上:
より安全な初期化, セットアップ&管理
パフォーマンス & 拡張性 管理性
MySQL 5.6比3倍の速度 Performance Schema拡張
MySQL SYS Schema改善
GA
- 29. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. 29
MySQL 5.6より3倍高速、MySQL 5.5より4倍高速
MySQL 5.7 Sysbench Benchmark: SQL による一意検索
1,600,000 QPS
0
200,000
400,000
600,000
800,000
1,000,000
1,200,000
1,400,000
1,600,000
1,800,000
8 16 32 64 128 256 512 1,024
QueriesperSecond
Connections
MySQL 5.7: Sysbench OLTP Read Only (SQL Point Selects)
MySQL 5.7
MySQL 5.6
MySQL 5.5
Intel(R) Xeon(R) CPU E7-8890 v3
4 sockets x 18 cores-HT (144 CPU threads)
2.5 Ghz, 512GB RAM
Linux kernel 3.16
- 30. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. 30
MySQL 5.6より3倍高速
MySQL 5.7 Sysbench Benchmark: OLTP 読み取りのみ
0
200,000
400,000
600,000
800,000
1,000,000
1,200,000
8 16 32 64 128 256 512 1,024
QueriesperSecond
Connections
MySQL 5.7: Sysbench OLTP Read Only
MySQL 5.7
MySQL 5.6
MySQL 5.5
Intel(R) Xeon(R) CPU E7-8890 v3
4 sockets x 18 cores-HT (144 CPU threads)
2.5 Ghz, 512GB RAM
Linux kernel 3.16
~ 1,000,000 QPS
- 31. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. 31
MySQL 5.6より1.5倍高速
MySQL 5.7 Sysbench Benchmark: OLTP 読み取り&書き込み
0
100,000
200,000
300,000
400,000
500,000
600,000
700,000
8 16 32 64 128 256 512 1,024
QueriesperSecond
Connections
MySQL 5.7: Sysbench OLTP Read Write
MySQL 5.7
MySQL 5.6
MySQL 5.5
Intel(R) Xeon(R) CPU E7-8890 v3
4 sockets x 18 cores-HT (144 CPU threads)
2.5 Ghz, 512GB RAM
Linux kernel 3.16
- 32. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. 32
SQL文の実行速度を向上、CPUとディスクスペースの削減
オプティマイザの改善
• オプティマイザとパーサーのリファクタ
リング
– 可読性、保守性、安定性の向上
– 独立した解析、最適化、実行ステージ
– 機能追加時のリスク軽減
• New ヒントフレームワーク
– より容易な管理
– 新しいヒントの追加
• JSON EXPLAINの改善
• 実行中のスレッドに対するEXPLAIN
• 新しいコストベース・オプティマイザ
– 機能拡張が容易に
– チューニング可能
• mysql.server_cost 、mysql.engine_cost
テーブルを使用してコストをチューニング
• 一時テーブルにInnoDBを使用
• ONLY_FULL_GROUP_BYモードの改善
• 多くの新しい最適化
• Generated Columns
- 33. Copyright © 2016, Oracle and/or its affiliates. All rights reserved.
オプティマイザー・コストモデル : パフォーマンス改善
0
20
40
60
80
100
Q3 Q7 Q8 Q9 Q12
Executiontimerelativeto5.6
(%)
22クエリ中5クエリは、オプティマイザの改善により大幅にパフォーマンス改善
MySQL 5.6
MySQL 5.7
33
DBT-3 (Size Factor 10, CPU bound)
※Q8は 5.6:約25秒 ⇒ 5.7:約3秒 まで短縮(データがキャッシュ上にあるテスト)
- 34. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. 34
DBT-3 (Size Factor 10)
オプティマイザー・コストモデル : パフォーマンス改善
0
20
40
60
80
100
Q2 Q18
Executiontimerelativeto5.6
(%)
CPU bound
5.6
5.7
22クエリ中2クエリは、オプティマイザの改善により著しくパフォーマンス改善
0
20
40
60
80
100
Q2 Q18
Executiontimerelativeto5.6
(%)
Disk bound
5.6
5.7
※Q2は 5.6:約3分 ⇒ 5.7:1秒、Q18は 5.6:約20分 ⇒ 5.7:40秒 まで短縮(データがキャッシュ上にないテスト)
- 35. Copyright © 2016, Oracle and/or its affiliates. All rights reserved.
JSON EXPLAINへのコスト情報追加
• JSON EXPLAINを拡張
– 出力可能なコスト情報を全て表示
– MySQL WorkbenchのVisual Explainにも表示
35
より具体的な値をベースに最適化を実施 {
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "200.40"
},
"table": {
"table_name": "nicer_but_slower_film_list",
"access_type": "ALL",
"rows_examined_per_scan": 992,
"rows_produced_per_join": 992,
"filtered": 100,
"cost_info": {
"read_cost": "2.00",
"eval_cost": "198.40",
"prefix_cost": "200.40",
"data_read_per_join": "852K"
},
"used_columns": [
"FID",
"title",
"description",
"category",
"price",
"length",
"rating",
"actors"
],
...
- 36. Copyright © 2016, Oracle and/or its affiliates. All rights reserved.
JSONデータ型の追加
JSON関数による管理面の強化と高速なドキュメント処理
36
- 37. Copyright © 2016, Oracle and/or its affiliates. All rights reserved.
Why JSON support in MySQL?
• シリアルフォーマットの便利なオブジェクト
• 効果的にJSONデータを処理する為
• JavaScriptアプリケーションのネイティブサポート
• リレーショナルデータとスキーマレスデータの
シームレスな統合
• 既存のデータベース・インフラストラクチャを
新しいアプリケーションでも活用
37
外部サイト
/SNS
モバイル
デバイス
コマース
/ポータル
その他
(data JSON);
REST/JSON
柔軟なBtoB,BtoC連携
ドキュメントデータを高速処理
- 38. Copyright © 2016, Oracle and/or its affiliates. All rights reserved.
JSONサポート
• ネイティブJSONデータ型
– データ処理と保管にネイティブな内部バイナリ形式サポート
– Insert時のJSON構文バリデーション機能
• 組み込みJSON関数
– 効率よくドキュメントを保存、検索、更新、操作する事を可能に
• JSONコンパレータ―
– 文書データを容易にSQLクエリと統合することが可能
• Generated Columnsを利用し、ドキュメントにインデックスを利用可能
– InnoDBは、Generated Columnsへのインデックス作成をサポート(stored&virtual)
– 新しいアナライザーは自動的に、利用可能で最適なインデックスを利用
38
- 39. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. 39
206,000件のドキュメントに対して、インデックスを使わずに検索
JSON と TEXT データタイプの比較
# JSONデータ型でfetureカラムをSELECT
SELECT DISTINCT
feature->"$.type" as json_extract
FROM features;
+--------------+
| json_extract |
+--------------+
| "Feature" |
+--------------+
1 row in set (1.25 sec)
# TEXTデータ型でfetureカラムをSELECT
SELECT DISTINCT
feature->"$.type" as json_extract
FROM features;
+--------------+
| json_extract |
+--------------+
| "Feature" |
+--------------+
1 row in set (12.85 sec)
- 40. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. 40
ドキュメントに対するスキャンをインデックススキャンに変更
JSONデータ型と関数インデックスの使用
ALTER TABLE features ADD feature_type VARCHAR(30) AS (JSON_UNQUOTE(feature-
>'$.type'));
Query OK, 0 rows affected (0.01 sec)
Records: 0 Duplicates: 0 Warnings: 0
ALTER TABLE features ADD INDEX (feature_type);
Query OK, 0 rows affected (0.73 sec)
Records: 0 Duplicates: 0 Warnings: 0
SELECT DISTINCT feature_type FROM features;
+--------------+
| feature_type |
+--------------+
| "Feature" |
+--------------+
1 row in set (0.06 sec)
メタデータの変更のみのため高速、
テーブルへはアクセス不要
インデックス作成のみの場合、
行データにはアクセスしない
インデックス使用により、
1.25秒→0.06秒に短縮
- 41. Copyright © 2016, Oracle and/or its affiliates. All rights reserved.
InnoDB全文検索の日本語サポート
41
- 42. Copyright © 2016, Oracle and/or its affiliates. All rights reserved.
全文検索とは?
• 文書内の要素を検索する
– 文字列を格納するデータ型が対象
– VARCHAR, TEXT, BLOB
• 検索文字列
– 単語の組み合わせ
– フレーズ: “検索する文字列”
– ワイルドカード: *
– ブール全文検索演算子: +, -, ~
– 関連重み付け文字: <, >
42
- 45. Copyright © 2016, Oracle and/or its affiliates. All rights reserved.
全文検索の用途例
• コンテンツ管理
– 情報に対する説明などのメタデータ
– 検索結果により有用な情報を提供
• 検索サービス
– 特定の用語やトークンを含むドキュメントを検索
– 現在の表示に最も類似したドキュメントを検索
– ユーザが最も興味のあるデータを検索
45
- 46. Copyright © 2016, Oracle and/or its affiliates. All rights reserved.
全文検索インデックス
• トークンと文章の関係を表現した転置インデックス
46
This movie is
about a boy
going to war.
This movie
is about a
girl starting
an auto-
shop.
This movie is
about
flowers.
a about
an are as
at be by
com de
en for
from
how i in
is it la of
on or
that the
this to
was
what
when
where
who will
with und
the
www
Min
Token
Size
Max
Token
Size
Document 1
Document 2
Document 3
Stop Words Token Size
Full Text / Inverted Index
ID TOKEN DOCUMENT
1 movie 1,2,3
2 boy 1
3 girl 2
4 going 1
5 starting 2
6 war 1
7 auto-shop 2
8 flowers 3
Token FiltersDocuments
Tokenizer
Tokenizer
Indexer
Indexer
- 47. Copyright © 2016, Oracle and/or its affiliates. All rights reserved.
MySQL 5.7での強化点
• N-gramによる中国語、 韓国語、日本語サポート
– N文字区切りでトークンを検出
47
mysql> SELECT * FROM INFORMATION_SCHEMA.INNODB_FT_INDEX_TABLE ORDER BY doc_id, position LIMIT 10;
+--------+--------------+-------------+-----------+--------+----------+
| WORD | FIRST_DOC_ID | LAST_DOC_ID | DOC_COUNT | DOC_ID | POSITION |
+--------+--------------+-------------+-----------+--------+----------+
| ロー | 1 | 15 | 2 | 1 | 0 |
| ール | 1 | 16 | 3 | 1 | 3 |
| ルと | 1 | 1 | 1 | 1 | 6 |
| とグ | 1 | 1 | 1 | 1 | 9 |
| グル | 1 | 7 | 2 | 1 | 12 |
| ルー | 1 | 16 | 3 | 1 | 15 |
| ープ | 1 | 7 | 2 | 1 | 18 |
| プベ | 1 | 1 | 1 | 1 | 21 |
| 環境 | 1 | 1 | 1 | 1 | 21 |
| ベー | 1 | 7 | 4 | 1 | 24 |
+--------+--------------+-------------+-----------+--------+----------+
10 rows in set (0.01 sec)c
- 48. Copyright © 2016, Oracle and/or its affiliates. All rights reserved.
MySQL 5.7での強化点
• MeCabによる日本語サポート
– Mecab(オープンソースの日本語辞書)を使ってトークンを検出
48
mysql> SELECT * FROM INFORMATION_SCHEMA.INNODB_FT_INDEX_TABLE ORDER BY doc_id, position LIMIT 10;
+--------------------+--------------+-------------+-----------+--------+----------+
| WORD | FIRST_DOC_ID | LAST_DOC_ID | DOC_COUNT | DOC_ID | POSITION |
+--------------------+--------------+-------------+-----------+--------+----------+
| ロール | 1 | 1 | 1 | 1 | 0 |
| グループ | 1 | 7 | 2 | 1 | 12 |
| 環境 | 1 | 1 | 1 | 1 | 21 |
| ベース | 1 | 7 | 2 | 1 | 24 |
| アクセス | 1 | 1 | 1 | 1 | 36 |
| コントロール | 1 | 1 | 1 | 1 | 48 |
| により | 1 | 1 | 1 | 1 | 66 |
| mysql | 1 | 16 | 12 | 1 | 78 |
| dba | 1 | 16 | 4 | 1 | 83 |
| きめ細か | 1 | 1 | 1 | 1 | 91 |
+--------------------+--------------+-------------+-----------+--------+----------+
10 rows in set (0.00 sec)
- 49. Copyright © 2016, Oracle and/or its affiliates. All rights reserved.
GISサポートの改善
49
- 50. Copyright © 2016, Oracle and/or its affiliates. All rights reserved.
GIS機能の改善
• Boost.Geometryと統合し、独自コードを置き換え
– 空間図形情報の計算、空間図形情報の分析
– OGC準拠
– パフォーマンスの向上
• Boost.Geometryコミュニティとの交流
– 非常に活発なコミュニティ
– Boost.Geometryへのコントリビューも
• MySQL Workbenchに搭載された
Spatialビューアー、Geometryビューアーで
geometry型のデータを容易に確認可能
50
- 51. Copyright © 2016, Oracle and/or its affiliates. All rights reserved.
InnoDBでの空間インデックス
• R-tree based
– トランザクションサポート
– レコードは最小のbounding box
(境界線)を含む
– 現時点では2Dデータのみをサポート
• 3Dデータのサポートも計画中
51
- 52. Copyright © 2016, Oracle and/or its affiliates. All rights reserved.
追加機能
• GeoHash
– 経度、緯度の情報を短い文字列で表現
– 経度、緯度の情報を素早く検索
– 精度を落とすことで近くのエリアが検索可能
• GeoJSON
• ST_Distance_Sphere()、
ST_MakeEnvelope() などの
便利な関数の提供
52
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [125.6, 10.1]
},
"properties": {
"name": "Dinagat Islands"
}
}
GeoJSON Example
- 53. Copyright © 2016, Oracle and/or its affiliates. All rights reserved.
MySQL Enterprise Edition
53
- 54. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. 54
MySQL Enterprise Edition
MySQL導入の最適化
ROIの最適化をサポート
ユーザビリティ・顧客満足の向上
ビジネス・クリティカルな環境において、最高レベルの
MySQLスケーラビリティ、セキュリティ、信頼性、
アップタイムを実現し、ビジネス・クリティカルな
環境においてリスクとコストを削減を実現
Improve
Performance
& Scalability
Enhance Agility &
Productivity
Reduce TCO
Mitigate Risks
Get
Immediate
Help if/when
Needed
Increase
Customer
Satisfaction
- 55. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. 55
MySQL Enterprise Edition のサービスカテゴリー
管理ツール拡張機能 サポート
• 拡張性
• 高可用性
• 統合認証
• 監査
• 暗号化
• ファイヤーウオール
• 監視
• バックアップ
• 開発
• 管理
• マイグレーション
• 技術サポート
• コンサルティングサポート
• オラクル製品との
動作保証
- 56. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. 56
費用対効果の高い付加価値
商用版MySQLがご提供する価値
技術
サポート
商用版
MySQL
知財
補償
追加
機能
商用
ライセンス
- 57. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. 57
MySQL Editions
Standard Edition Enterprise Edition Cluster CGE
機能概要
MySQL Database ✔ ✔ ✔
MySQL Connectors ✔ ✔ ✔
MySQL Replication ✔ ✔ ✔
MySQL Fabric, MySQL Utilities ✔ ✔
MySQL Partitioning ✔ ✔
MySQL Router ✔ ✔
Storage Engine: MyISAM, InnoDB ✔ ✔ ✔
Storage Engine: NDB (ndbcluster) ✔
MySQL Workbench SE/EE* ✔ ✔ ✔
MySQL Enterprise Monitor* ✔ ✔
MySQL Enterprise Backup* ✔ ✔
MySQL Enterprise Authentication (外部認証サポート)* ✔ ✔
MySQL Enterprise Audit (ポリシーベース監査機能)* ✔ ✔
MySQL Enterprise Encryption (非対称暗号化)* ✔ ✔
MySQL Enterprise Firewall (SQLインジェクション対策)* ✔ ✔
MySQL Enterprise Scalability (スレッドプール)* ✔ ✔
MySQL Enterprise High Availability (HAサポート)* ✔ ✔
Oracle Enterprise Manager for MySQL * ✔ ✔
MySQL Cluster Manager (MySQL Cluster管理)* ✔
MySQL Cluster Geo-Replication ✔
*商用版のみで利用可能な追加機能
- 58. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. 58
MySQL Editions
Standard Edition Enterprise Edition Cluster CGE
Oracle Premium Support
24時間365日サポート ✔ ✔ ✔
インシデント数無制限 ✔ ✔ ✔
ナレッジベース ✔ ✔ ✔
バグ修正&パッチ提供 ✔ ✔ ✔
コンサルティングサポート ✔ ✔ ✔
オラクル製品との動作保証
Oracle Linux ✔ ✔ ✔
Oracle VM ✔ ✔ ✔
Oracle Solaris ✔ ✔ ✔
Oracle Enterprise Manager ✔ ✔
Oracle GoldenGate ✔ ✔
Oracle Data Integrator ✔ ✔
Oracle Fusion Middleware ✔ ✔
Oracle Secure Backup ✔ ✔
Oracle Audit Vault and Database Firewall ✔ ✔
※最新の対比表は、MySQL Editionsのサイトを参照下さい
- 59. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. 59
MySQL Enterprise Edition管理ツールと拡張機能概要
MySQL Enterprise Edition
MySQL Enterprise Monitor 複数サーバの一括管理、クエリ性能分析
MySQL Enterprise Backup 高速なオンラインバックアップ、ポイントインタイムリカバリ
MySQL Enterprise Scalability Thread Poolプラグインによる性能拡張性の向上
MySQL Enterprise Authentication LDAPやWindows Active Directoryとの外部認証と統合管理
MySQL Enterprise Audit ユーザ処理の監査、Oracle DBと同じツールで管理可能
MySQL Enterprise Encryption 非対称暗号化(公開鍵暗号)の業界標準機能を提供
MySQL Enterprise Firewall SQLインジェクション対策
Oracle Enterprise Manager for MySQL Oracle Enterprise ManagerからMySQLを統合管理可能
Oracle Premier Support 24x7, インシデント無制限、コンサルティングサポート
- 60. Copyright © 2016, Oracle and/or its affiliates. All rights reserved.
MySQL Enterprise Support
• 最大のMySQLのエンジニアリングおよびサポート組織
• MySQL開発チームによるサポート
• 29言語で世界クラスのサポートを提供
• メンテナンス・リリース、バグ修正、パッチ、アップデートの提供
• 24時間x365日サポート
• 無制限サポート・インシデント
• MySQL コンサルティング・サポート
60
Get immediate help for any MySQL
issue, plus expert advice
~リモートDBAとして、是非ご活用ください!!~
- 61. Copyright © 2016, Oracle and/or its affiliates. All rights reserved.
MySQL Supportの特徴
• 「パフォーマンス・チューニング」や「SQLチューニング」まで
通常サポートの範囲内
– コンサルティングサポートが含まれており、「クエリ・レビュー」、「パフォーマンス・
チューニング」、「レプリケーション・レビュー」、「パーティショニング・レビュー」などに
対応可能
– 詳細はこちらを参照下さい
http://www-jp.mysql.com/support/consultative.html
• ソースコードレベルでサポート可能
– ほとんどのサポートエンジニアがソースを読めるため、対応が早い開発エンジニアと
サポートエンジニアも密に連携している
61
- 62. Copyright © 2016, Oracle and/or its affiliates. All rights reserved.
MySQL Supportの特徴
• 物理サーバー単位課金
– CPU数、コア数に依存しない価格体系
– 4CPUまで(コア数は制限無し)同一料金、5CPU以上の価格は営業問合せ
• オラクルのライフタイムサポート
– 詳細はこちらを参照下さい
http://www.oracle.com/jp/support/lifetime-support/index.html
http://www-jp.mysql.com/support/
62
- 64. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. 64
30日間トライアル
MySQL Enterprise Edition & Cluster CGEの試使用
• Oracle Software Delivery Cloud
http://edelivery.oracle.com/
• 製品パックを選択:
"Product" にMySQLと入力し、
OSを選択し"Continue"
• 製品マニュアル
http://dev.mysql.com/doc/index-
enterprise.html
- 65. Copyright © 2016, Oracle and/or its affiliates. All rights reserved.
価格
MySQL サブスクリプション(ソケット数) 年間価格(円) ライセンスカウント単位
MySQL Standard Edition (1-4ソケット・サーバー/年) 240,000 サーバー
MySQL Enterprise Edition (1-4ソケット・サーバー/年) 600,000 サーバー
MySQL Cluster Carrier Grade Edition (1-4ソケット・サーバー/年) 1,200,000 サーバー
65
MySQLライセンスは、MySQLデータベースがインストールされたサーバー数でカウントされます。
価格は「物理サーバー単位」で、各エディションについて、1-4ソケットおよび5ソケット以上をもつサーバーの2クラスの価格があります。
5ソケット以上の価格については、MySQL担当営業までお問い合わせください。
MySQL Cluster を初めて導入される場合は、コンサルタントをご利用されることをお薦めしています。必ずオラクルのMySQL担当営業
までご相談くだ さい。
※サーバー:プログラムがインストールされたコンピュータと定義されます。サーバー・ライセンスによって使用許諾を受けたプログラムを、
指定された1台のコンピュータで使用することができます。仮想環境上でMySQLを稼働させた場合も物理サーバー単位でカウントされます。
※ソケット:CPUチップ(またはマルチチップ・モジュール)を装着したスロットと定義され、1つまたは複数のコアを含みます。コアの数にかかわらず、
各チップ(またはマルチチップ・モジュール)は1つのソケットとして数えられます。
- 66. Copyright © 2016, Oracle and/or its affiliates. All rights reserved.
お問合せ先
• [MySQL お問い合わせ窓口]
0120-065556
• 【受付時間】
平日 9:00-12:00/13:00-18:00
(祝日及び年末年始休業日を除きます)
MySQL-Sales_jp_grp@oracle.com
66
- 67. Copyright © 2016, Oracle and/or its affiliates. All rights reserved.
MySQLの最新情報配信
• MySQLホームページ
http://www-jp.mysql.com/
• MySQL イベント
http://www-jp.mysql.com/news-and-events/events/
• MySQLニュースレター(月刊)※マイプロファイル内からMySQLを選択ください
http://www.oracle.com/jp/syndication/subscribe/index.html
• MySQL Twitter
@mysql_jp
• OTN セミナー オンデマンド コンテンツ
http://www-jp.mysql.com/news-and-events/generate-article.php?id=1709
67
- 68. Copyright © 2016, Oracle and/or its affiliates. All rights reserved.
日本MySQLユーザー会(MyNA)
• 主な活動: メーリングリストでの情報交換やイベント開催
• MySQLに興味がある方であればどなたでも入会(メーリングリスト参加)可能
– 会費無し、退会も自由
• URL: http://www.mysql.gr.jp/
68
- 69. Copyright © 2016, Oracle and/or its affiliates. All rights reserved.
MySQLのドキュメント
• MySQL Developer Zone(http://dev.mysql.com/)にドキュメント類が公開されている
• 以下のドキュメントは2015年6月に日本語版が公開された
– MySQL 5.6 リファレンスマニュアル (含むMySQL Cluster 7.3-7.4マニュアル)
http://dev.mysql.com/doc/refman/5.6/ja/index.html
– MySQL Enterprise Monitor 3.0.18 マニュアル
http://dev.mysql.com/doc/mysql-monitor/3.0/ja/index.html
– MySQL Enterprise Backup ユーザーズガイド (バージョン 3.11.1)
http://dev.mysql.com/doc/mysql-enterprise-backup/3.11/ja/index.html
• 上記日本語版公開以降に英語版ドキュメントのみ修正されている内容も
あるため、ドキュメント参照時は英語版ドキュメントも合わせてご参照下さい
(URLの”ja”部分を”en”に変更すると、英語版ドキュメントが表示可能)
69
- 70. Copyright © 2016, Oracle and/or its affiliates. All rights reserved.
MySQLのドキュメント
• MySQL Documentation: MySQL Reference Manuals
http://dev.mysql.com/doc/
• MySQL Documentation: MySQL Workbench
http://dev.mysql.com/doc/index-gui.html
• MySQL Documentation: MySQL Utilities/MySQL Fabric
http://dev.mysql.com/doc/index-utils-fabric.html
• MySQL Documentation: Connectors and APIs
http://dev.mysql.com/doc/index-connectors.html
70
- 71. Copyright © 2016, Oracle and/or its affiliates. All rights reserved.
MySQLのドキュメント
• MySQL Documentation: Other MySQL Documentation
http://dev.mysql.com/doc/index-other.html
⇒”world database”などのサンプルデータベースもダウンロード可能
• MySQL Documentation: MySQL Enterprise Products
http://dev.mysql.com/doc/index-enterprise.html
⇒商用版製品に関するドキュメント
71