Top Banner
MySQLの話 MySQL 5.6をインストールしてみた ②これ知ってる?MySQL 2つのこと
13

MySQLの話 for qpstudy 2013.07

May 12, 2015

Download

Technology

idacchi

qpstudy 2013.07の懇親会LTで話した内容
http://www.zusaar.com/event/885007
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: MySQLの話 for qpstudy 2013.07

MySQLの話①MySQL 5.6をインストールしてみた②これ知ってる?MySQL 2つのこと

Page 2: MySQLの話 for qpstudy 2013.07

①MySQL 5.6インストールしてみた

Page 3: MySQLの話 for qpstudy 2013.07

インストールServer

• rpm -ivh MySQL-server-5.6.12-2.linux_glibc2.5.x86_64.rpm

Page 4: MySQLの話 for qpstudy 2013.07

インストールClient

• rpm -ivh MySQL-client-5.6.12-2.linux_glibc2.5.x86_64.rpm

Page 5: MySQLの話 for qpstudy 2013.07

rootパスワードの場所

•デフォルト=ブランクじゃなくなった

• # cat /root/.mysql_secret

• # The random password set for the root user at Sat Jul 27 11:36:12 2013 (local time): rgbJOVYc

Page 6: MySQLの話 for qpstudy 2013.07

my.cnfのサンプルが無くなってる

• my-huge.cnf

• my-innodb-heavy-4G.cnf

• my-large.cnf

• my-medium.cnf

• my-small.cnf

Page 7: MySQLの話 for qpstudy 2013.07

あるのはこれだけ

• /usr/share/mysql/my-default.cnf

•漢らしいほど何も書いてない

•どこかにサンプル無いのかな?

Page 8: MySQLの話 for qpstudy 2013.07

②これ知ってる?MySQL 2つのこと

Page 9: MySQLの話 for qpstudy 2013.07

通信

• mysql -h 127.0.0.1→TCP/IP

• mysql -h localhost→ソケットファイル(/var/lib/mysql/mysql.sock)

Page 10: MySQLの話 for qpstudy 2013.07

max_connections

• 2048とか設定できる

• MySQLはシングルプロセス・マルチスレッド

•内部でsetrlimit呼んでる

Page 11: MySQLの話 for qpstudy 2013.07
Page 12: MySQLの話 for qpstudy 2013.07
Page 13: MySQLの話 for qpstudy 2013.07

Thank you!!