forked from nalabjp/study
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1228a8e
commit ea284f9
Showing
3 changed files
with
80 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
MySQLさらっとまとめ | ||
|
||
# 目次 | ||
1. そもそもDBとは | ||
2. MySQLとは | ||
3. MySQLの特徴 | ||
4. 参考文献 | ||
5. おわりに | ||
|
||
# 1. そもそもDBとは | ||
[こっち](/db.md)にまとめた | ||
|
||
# 2. MySQLとは | ||
> MySQLは、オープンソースで公開されている関係データベース管理システム (RDBMS) の一つである。 | ||
(Wikipediaより) | ||
|
||
[MySQL](https://www.mysql.com/jp/)は世界で最も利用されている`データベース管理システム`。大容量のデータに対しても高速で動作し便利な機能がたくさんあるので非常に実用性が高く、またオープンソースなので非商用利用であれば無償で使用できるため、初心者でも導入しやすい。 | ||
|
||
![MySQL](https://www.sejuku.net/blog/wp-content/uploads/2016/07/mysql-logo-640x267.jpg) | ||
|
||
# 3. MySQLの特徴 | ||
## 拡張性と柔軟性が高い | ||
MySQLは小さいアプリケーションから巨大なアプリケーションまですべてに対応できるほどの拡張性をもっており、また複数のOS(Mac、Windows、Linuxなど)で利用可能 | ||
|
||
## 高性能 | ||
MySQLには`ストレージエンジン`(データベースを作成、更新、削除など基本的な操作を行うための中心の機能)が採用されており、アプリケーションの用途に応じてストレージエンジンの種類を選択することが可能 | ||
|
||
## 高い信頼性 | ||
MySQLは24時間体制の稼働を実現するためにさまざまな機能があり、バックアップ機能やリカバリー機能など、いざという時のために大事なデータを守ることができる | ||
|
||
## トランザクション | ||
MySQLには`トランザクション`(データの一貫性を保つために一連の処理が完了するまでデータを変更しないようにできる機能)をサポートする機能が多くあるので、完全にデータの一貫性を保つことが可能 | ||
|
||
## 強力なセキュリティ | ||
データベースへのアクセス制御、安全な接続を保証するSSHやSSLといったセキュリティ技術をサポートし、またデータが第三者によって盗み見されることを防止する強力なデータ暗号機能も用意されている | ||
|
||
## レプリケーション機能 | ||
MySQLには`レプリケーション機能`(データベースサーバー (マスター) のデータを1つまたは複数のデータベースサーバー (スレーブ) に複製すること)があり、負荷分散、バックアップ、スレーブでの情報分析などが可能になる | ||
|
||
MySQLのレプリケーションには主に以下がある | ||
``` | ||
- 非同期レプリケーション | ||
マスターは、イベントがスレーブに届いたかは確認しない。マスターとスレーブのデータが違う可能性がある | ||
- 準同期レプリケーション | ||
マスターのトランザクションがコミットされた後、少なくとも1つのスレーブがイベントを受け取るまで待機する | ||
- (完全)同期レプリケーション | ||
マスターのトランザクションがコミットされた後、全てのスレーブがイベントを受け取るまで待機する | ||
``` | ||
|
||
## その他 | ||
オープンソースで基本的に無料であること、便利な管理ツール(phpMyAdmin、MySQL Workbenchなど)が充実していることなど... | ||
|
||
# 4. 参考文献 | ||
https://ja.wikipedia.org/wiki/MySQL<br> | ||
https://www.kagoya.jp/howto/webhomepage/mysql/<br> | ||
https://www.sejuku.net/blog/9021#MySQL<br> | ||
https://blog.codecamp.jp/what_is_mysql<br> | ||
https://itpropartners.com/blog/8423/#MySQL<br> | ||
https://qiita.com/okamuuu/items/c4efb7dc606d9efe4282 | ||
|
||
# 5. おわりに | ||
普通にすごい、便利。MySQLに慣れるには普通に手動かすだけだ 💻 |