Modern, native, and friendly GUI tool for relational databases: MySQL, PostgreSQL, SQLite & more
2007/ 01 02 03 04 05 06 07 08 09 10 2006/ 01 02 03 04 05 06 07 08 09 10 11 12 2005/ 01 02 03 04 05 06 07 08 09 10 11 12 2004/ 01 02 03 04 05 06 07 08 09 10 11 12 2003/ 01 02 03 04 05 06 07 08 09 10 11 12 2002/ 01 02 03 04 05 06 07 08 09 10 11 12 2001/ 01 02 03 04 05 06 07 08 09 10 11 12 2000/ 01 02 03 04 05 06 07 08 09 10 11 12 1999/ 01 02 03 04 05 06 07 08 09 10 11 12 1998/ 01 02 03 04 05 06 07 0
ä»äºãããªãããã§MySQLã®ã¯ã¨ãªã®è¯ãæªããå¤æããå¿ è¦ãããã¨ããEXPLAINã®å 容ã ãã ã¨ã©ã®ãããè¯ããªã£ããæªããªã£ãã®ãåãããªãã®ã§ SET long_query_time = 0; ãã¦rows_examined (ãã®ã¯ã¨ãªã§rows_sentè¡ã®çµæãè¿ãããã«ä½è¡ã«è§¦ã£ãã®ã)ãä¸ç·ã«æ示ããããã«ãã¦ãã(å°ãªãã¨ãMySQL 5.7æç¹ã§ã¯rows_examinedã¯slow_query_logã§ãã確èªã§ããªãã¯ãperformance_schemaãæå¹ãªãevents_statements_historyããã®ä»²éãã¡ã§ç¢ºèªã§ããã¨ã®ãã¨*1 MySQL :: MySQL 5.6 ãªãã¡ã¬ã³ã¹ããã¥ã¢ã« :: 22.9.6 ããã©ã¼ãã³ã¹ã¹ãã¼ãã¹ãã¼ãã¡ã³ãã¤ãã³ããã¼ãã«)ã ä¾: ä¸ã®ä¾ã®Beforeã¯ããã¨ãã¨DBAãæ¸ãã温ãã¿ã®ããSQLã§O
ããã«ã¡ã¯ããµã¼ãã¹éçºé¨ã®èå¼ (@a_bicky) ã§ãã çªç¶ã§ãããRDBMS ã®æ¢åã®ãã¼ãã«ãè¦ã¦ã¿ãããä½ã§ãããªã«ã¤ã³ããã¯ã¹ã ãããªã®ï¼ãã¿ãããªçµé¨ã¯ããã¾ãããï¼ä¸è¦ãªã¤ã³ããã¯ã¹ã¯å®¹éãå§è¿«ããããæ¿å ¥ãé ããªã£ããã¨è¯ããã¨ãããã¾ããã ãããªããã§ãä»åã¯ã¬ã³ã¼ããæ¤ç´¢ããããã«å¿ è¦ãªã¤ã³ããã¯ã¹ã®åºç¤ç¥èã¨ãããè¦ãããä¸é©åãªã¤ã³ããã¯ã¹ã«ã¤ãã¦è§£èª¬ãã¾ããã¯ãã¯ãããã§ã¯ Rails ã®ãã¼ã¿ãã¼ã¹ã¨ãã¦ä¸»ã« MySQL 5.6ãMySQL ã®ã¹ãã¬ã¼ã¸ã¨ã³ã¸ã³ã¨ãã¦ä¸»ã« InnoDB ã使ã£ã¦ããã®ã§ãMySQL 5.6 ã® InnoDB ã«ã¤ãã¦è§£èª¬ãã¾ãã InnoDB ã®ã¤ã³ããã¯ã¹ã«é¢ããåºç¤ç¥è ã¤ã³ããã¯ã¹ã®æ§é (B+ æ¨) InnoDB ã§ã¯ B+ æ¨ã使ããã¦ãã¾ããB+ æ¨ã¯æ¬¡ã®ãããªç¹å¾´ãæã£ãæ¨æ§é ã§ãã 次æ°ã b ã¨ããã¨ã
WEB+DB PRESS Vol.93 ä½è : åç°é¨é,åç¾½é¾å¤ªé,æ¾æµ¦é¼äºº,é è¤æ¶¼ä»,çæ²¼ä¸å ¬,森ä¸é ç« ,å島çä¸,éæ²»å ä¸,ä¼è¤ç´ä¹,ã®ããã²ããµã¿,ãããã¿,é«å±±æ¸©,ä½ã æ¨å¥ä¸,ãããã¾ãã²ã,ã²ãã½ã,é è¤é 伸,æµ·éå¼æ,ã¯ã¾ã¡ã2,竹å,è¤ç°æ£è¨,WEB+DB PRESSç·¨éé¨åºç社/ã¡ã¼ã«ã¼: æè¡è©è«ç¤¾çºå£²æ¥: 2016/06/24ã¡ãã£ã¢: 大åæ¬ãã®ååãå«ãããã°ãè¦ã MySQLã主ã¨ãã話ã§ããã ã¹ãã¼ã¯ã¨ãªãEXPLAINã®èª¬æãããããåé¡ãªã©ã®èª¬æãããã¦ãããã¨ã¦ãè¯ãå 容ã§ããã ï¼pt-query-digest ã¯ç¥ããªãã£ãï¼ ä»¥ä¸ã¯å人çã«æ°ã«ãªã£ãã¨ãã mysqldumpslow mysqldumpslow -s t mysql-slow.log ã½ã¼ããªãã·ã§ã³ é ç® èª¬æ t/at å®è¡æï¼å¹³åå®è¡æé l/al ããã¯æéï¼å¹³åããã¯æ
æè¿ï¼ç°å¢ãã¨ã®ãã¼ã¿ãã¼ã¹ã¹ãã¼ãã®å·®åããã§ãã¯ããæ©ä¼ããã£ãï¼ãããã¯ã·ã§ã³ç°å¢ã¨ã¹ãã¼ã¸ã³ã°ç°å¢ãªãã¾ã ããï¼éçºç°å¢ã ã¨æ¤è¨¼ã®ããã«è¿½å ããã¤ã³ããã¯ã¹ããã®ã¾ã¾ã«ãªã£ã¦ãããï¼éçºãéä¸ã§æ¢ã¾ã£ã¦ãã¾ã£ã¦æ¥ã®ç®ãè¦ããã¨ããªãã£ããã¼ãã«ãæ®ã£ã¦ãããï¼ãããããã¨ã£ã¦æ¯è¼çããã®ã§ã¯ãªãããªã¨æãï¼ç¹ã«ä»ã®ç°å¢ã ã¨ï¼ãã¤ã°ã¬ã¼ã·ã§ã³ã®ä»çµã¿ãæ´ã£ã¦ããªãã¨ãã課é¡ãããï¼ããä¸å±¤ï¼ãã¼ã¿ãã¼ã¹ã¹ãã¼ãã«å·®åãåºããããªã£ã¦ãã¾ã£ã¦ããï¼ ä»å㯠MySQL ããå ¬å¼ã«æä¾ããã¦ãã mysqldiff ã¨ãããã¼ã«ã使ã£ã¦ãã¼ã¿ãã¼ã¹ã¹ãã¼ãã®å·®åããã§ãã¯ããï¼ mysqldiff ãã¤ã³ã¹ãã¼ã«ãã mysqldiff 㯠MySQL Utilities ã¨ãã MySQL ã®ç®¡çãã¼ã«ããã±ã¼ã¸ã®ä¸ã«å梱ããã¦ããï¼ç¾å¨ã 㨠v1.6 ãææ°ã«ãªã£ã¦ããï¼ MySQL
ã½ãªã¥ã¼ã·ã§ã³ã¨ã³ã¸ãã¢ãã¼ã ã«æå±ããçè ããä»ã§ã¯æ§ã ãªææ³ãåå¨ããã¬ããªã±ã¼ã·ã§ã³æ©è½ã«ã¤ãã¦ãæ¹ãã¦ç¹å¾´ã注æç¹ã解説ãã¤ã¤ãã¬ããªã±ã¼ã·ã§ã³ã®ããããã誤解ãã«å¯¾ãã¦ããçããã¦ãã¾ãã ãã®ããã°è¨äºã§ã¯ãMySQLï¼ããã³ Percona Serverï¼ç°å¢ã«ãããã¬ããªã±ã¼ã·ã§ã³ææ³ã«é¢ãã¦æ¹ãã¦èå¯ãè¡ãããã¨æãã¾ãããããã¦ãææè¦åããããã¬ããªã±ã¼ã·ã§ã³ã®ééã£ãèãæ¹ã«ã¤ãã¦ãèãã¦ã¿ã¾ãã ç§ãã½ãªã¥ã¼ã·ã§ã³ã¨ã³ã¸ãã¢ã¨ãã¦åãå§ãã¦ããã¨ãããã®ã沢山ã®æ å ±ãå ¬éããã¦ããã«ãé¢ããããã¬ããªã±ã¼ã·ã§ã³ã«å¯¾ããã誤解ãããä¸å®å ¨ãªç解ããç¡ããªããªããã¨ãæ¥ã æãã¦ãã¾ããã ããããã¬ããªã±ã¼ã·ã§ã³ã¨ã¯ä½ãï¼ ã¬ããªã±ã¼ã·ã§ã³ã¯ã1ã¤ã®ãã¼ã¿ãã¼ã¹ã«ãã¼ã¿ãèç©ããã ãã§ãªããå¥ã®ãã¼ã¿ãã¼ã¹ã«ãã¼ã¿ãè¤è£½ãã転éãããã¨ãä¿è¨¼ãã¦ãããæ©è½ã§ã ï¼è¤è£½
Hori Blogããªã¼ã©ã³ã¹ã§ããã¯ã¨ã³ãã¨ã³ã¸ãã¢ã¨ãã¦æ´»åãã¦ãã Ryota Hori ã®ããã°ã§ãã æè¿ã¯ããã¯ç³»è¨äºããéè¨ããã°æ°å³ã Amazon Aurora äºä¾ç¥ã ã«è¡ã£ã¦ããã®ã§ãã¡ã¢ãå ¬éãã¾ãã 社å å ±æ㧠Slack ã«è²¼ããã¨æã£ã¦ããã¡ã¢ãªã®ã§ãããé·ããªã£ãã®ã§ããã°ã«å ¬éãã¾ãã æ¦è¦ Amazon Aurora äºä¾ç¥ã ï¼2017 å¹´ 3 æ 7 æ¥éå¬ï¼ | AWS ã»ãã·ã§ã³å 容 Amazon Aurora ã使ãããªãããã®ãã¹ããã©ã¯ãã£ã¹ã¨ææ°ã¢ãããã¼ã @con_mame ãã ãã¼ã¿ãã¼ã¹ã½ãªã¥ã¼ã·ã§ã³ã¢ã¼ããã¯ã ç»å£è³æ: [Aurora äºä¾ç¥ã]Amazon Aurora ã使ãããªãããã®ãã¹ããã©ã¯ãã£ã¹ éçºãµã¤ãããã®ç¥è¦ã¨ä»å¾ã®å±æ PostgreSQL For Aurora ã§ããï¼ 9.6.4 ã¨äºæ My
æ¬æ¥ã gh-ost ã®ãªã¼ãã³ã½ã¼ã¹ã»ãªãªã¼ã¹ãçºè¡¨ãã¾ããGitHubã®ãããªã¬ã¼ã¬ã¹ãªMySQLåããªã³ã©ã¤ã³ã»ã¹ãã¼ãã»ãã¤ã°ã¬ã¼ã·ã§ã³ã»ãã¼ã«ã§ãã gh-ost ã¯ãMySQLãã¼ãã«ã®ä¿®æ£ãå¿ è¦ãªãé²è¡ä¸ã®ç¶ç¶çãªãããã¯ã·ã§ã³å¤æ´ã«ä¼´ã£ã¦ç§ãã¡ãç´é¢ããåé¡ã«çããããã«ãããæ°ã¶æã§éçºããã¾ããã gh-ost ã¯ãè² æ ãå°ãããå¶å¾¡ãããããç£æ»ãããããæä½ãç°¡åãªã½ãªã¥ã¼ã·ã§ã³ãæä¾ãããã¨ã«ãã£ã¦ãç¾å¨ã®ãªã³ã©ã¤ã³ã»ãã¼ãã«ã»ãã¤ã°ã¬ã¼ã·ã§ã³ã®ãã©ãã¤ã ãæ§å¤ããããã¾ãã MySQLãã¼ãã«ã®ãã¤ã°ã¬ã¼ã·ã§ã³ã¯ãããç¥ãããåé¡ã§ã2009å¹´ããã¯ãªã³ã©ã¤ã³ã»ã¹ãã¼ãå¤æ´ãã¼ã«ã«ãã£ã¦å¯¾å¦ããã¦ãã¾ããããã¤ãã¼ã¹ã§æé·ãããããã¯ãã«ä¼´ã£ã¦ããã¼ã¿ãã¼ã¹æ§é ã®å¤æ´ãå¿ è¦ã«ãªãã¾ããåãã¤ã³ããã¯ã¹ãªã©ã®è¿½å ã»å¤æ´ã»åé¤ã¯ãããã©ã«ãã®MySQLã®åä½ã妨ãã
StackOverflowã§ãã¤ã¹ãªåçãè¦ã¤ããã 以ä¸ãèªåç¨ã¡ã¢ã¨ãã¦è¦ç¹ãããã¯ã¢ããã http://dba.stackexchange.com/questions/27328/how-large-should-be-mysql-innodb-buffer-pool-size InnoDBã®æé©ãªãããã¡ãã¼ã«ãµã¤ãºãäºæ³ããã«ã¯ãã¾ããã®SQLãå®è¡ããã SELECT Ceiling(total_innodb_bytes * 1.6 / Power(1024, 3)) RIBPS FROM (SELECT Sum(data_length + index_length) Total_InnoDB_Bytes FROM information_schema.tables WHERE engine = 'InnoDB') A; ããã¯ãç¾æç¹ã§InnoDBã使ã£ã¦ããã¡ã¢ãªã®ç·éã
Apache/2.4.61 (Unix) OpenSSL/3.0.13 Server at ftp.jaist.ac.jp Port 80
MySQLã³ãã¥ããã£ããã¼ã¸ã£ã®Morgan Tockeræ°ã«ãããMySQL 5.6ãã¤ã³ã¹ãã¼ã«ããå¾ã«ããã©ã«ãå¤ããå¤æ´ããæ¹ããããã©ã¡ã¼ã¿ã®è§£èª¬ã æ°ã ã®ããã©ã«ãå¤ã®æ¹åã«ãã£ã¦ãéå»ã®ãã¼ã¸ã§ã³ã¨æ¯ã¹ã¦MySQL 5.6ã§ã¯è¨å®ããªãã¦ã¯ãªããªãå¤ãããªãæ¸ã£ããã¨ã¯è¨ããå¤æ´ãã¹ããã®ã«ã¤ãã¦ããã§æ¸ãã¦ããããã InnoDBã®è¨å® innodb_buffer_pool_size - ããã©ã«ãã¯128Mãããã¯ãã¡ã¢ãªã«ãã¼ãããããã¼ã¿ã¨ã¤ã³ããã¯ã¹ã®ããã«InnoDBãã©ã®ãããã¡ã¢ãªã使ãããæå®ãããã®ãªã®ã§ãè¨å®ãã¹ãéè¦ãªå¤ã ãMySQLã®å°ç¨ãµã¼ããªããæè¼ããã¦ããã¡ã¢ãªã®50%ãã80%ãæ¨å¥¨ãããè¨å®å¤ã ãä¾ãã°ã64GBã®RAMãæè¼ãã¦ãããµã¼ããªãããããã¡ãã¼ã«ã¯50GBç¨åº¦ã«ãã¹ãã ããã innodb_log_file_size -
ããMySQLã¯ãããµãã ãã å¤ãåæã«åãè©°ãããã ã¨ã©ã¼ãèµ·ããã«å¤ãªå¤/æ¥ä»ãå ¥ã ä¸æ£ãªã¹ãã¼ããå ¥ã£ã¦ãã¾ã ãªã©è¨ããããã¨ãããã¾ãããã ããã¯ãããããã®è¨å®ãæªãã®ã§ãã(確ãã«æããã©ã«ãããããµããªã®ã¯ãããªãã£ããã§ãã) ã¨ãããã¨ã§ããã¼ã¿ãã¼ã¹ã«ã¯ä¸æ£ãªå¤ãå ¥ããªãããã«è¨å®ã¯ã¨ã«ããå³ãããã¦ããã®ããªã¹ã¹ã¡ã§ãã ãããã©ããããã MySQLã¯SQL Modeã«ãã£ã¦ããã®è¾ºãã®å¶ç´ãã³ã³ããã¼ã«ãããã¨ãã§ãã¾ãã以åãMySQLã®sql-modeã§ä¸çªå³ãããã¤ã¯TRADITIONALãã¨ããã®ãæ¸ããã®ã§ãããå®ã¯ããã ãã§ã¯ä¸ååã§ãTRADITIONAL,NO_AUTO_VALUE_ON_ZERO,ONLY_FULL_GROUP_BYã¨ããã®ãããå®å¿ãªããã§ãã ããã¯kamipoããã«æãã¦ãããã¾ããã @songmu TRADITI
æè¡é¨ã®å°é(taiki45)ã§ããã¯ãã¯ãããã§ã¯ããã¾ã§æ§ã ãªãã¼ã¿ãã¼ã¹ã®è² è·å¯¾çãè¡ã£ã¦ãã¾ããããã·ã£ã¼ãã£ã³ã°ã¯è¡ããã¦ãã¾ããã§ããããããå æ¥ã¯ãã¯ãããã®èªå¯ãµã¼ãã¼ãå©ç¨ãã¦ãã MySQL ãµã¼ãã¼ã®è² è·åæ£ã®ããã«ã¯ãã¯ãããã§åãã¦ã®ã·ã£ã¼ãã£ã³ã°ãè¡ã£ãã®ã§ãRails ã¢ããªã±ã¼ã·ã§ã³ã§ã®ã·ã£ã¼ãã£ã³ã°ã®äºä¾ã®ã²ã¨ã¤ã¨ãã¦ãã®éã®ææ³ããç´¹ä»ãããã¨ãããã¾ãã æ§æ Before ãã¼ã¿ãã¼ã¹ã¯1ãã¹ã¿ã¼ã1ãããã¹ã¿ã³ãã¤ããããç¨ã®1ãªã¼ãã¬ããªã«ã§æ§æããã¦ãã¾ããRead ãªãã¬ã¼ã·ã§ã³ã®ã»ã¨ãã©ã¯ãã£ãã·ã¥å±¤ã«éãã¦ãã¾ãã After ãã¼ã¿ãã¼ã¹ã®åãã¼ã«ã«ã¤ããããã1å°ãã¤ãã·ã³ãå¢ãã¦ãã¾ãã ã·ã£ã¼ãã£ã³ã°ãå¿ è¦ã«ãªã£ãèæ¯ èªå¯ãµã¼ãã¼ã®ã¢ã¯ã»ã¹ãã¼ã¯ã³ã®ä½æã»åé¤æã® Write ãªãã¬ã¼ã·ã§ã³ãæ¥å¢ããã¬ã³ã¼ãæ°èªä½ãæ¥å¢ãã¦ãã¦
# Time: 120114 6:34:33 # User@Host: user[user] @ [10.10.10.10] # Thread_id: 28313080 Schema: mydb Last_errno: 0 Killed: 0 # Query_time: 0.588882 Lock_time: 0.000068 Rows_sent: 3 Rows_examined: 183839 Rows_affected: 0 Rows_read: 100 # Bytes_sent: 121 Tmp_tables: 0 Tmp_disk_tables: 0 Tmp_table_sizes: 0 /+ Percona Server ç¬èªã®ãã° +/ # InnoDB_trx_id: 9903E4DB1 # QC_Hit: No Full_scan: No Full_join: No Tmp
WEB+DB PRESS Vol.72 ä½è : è¿è¤å®æºæ,çäºæºå¸,Dr.Kein,tokuhirom,森ç°åµ,ä¸å³¶è¡,å ¤æºä»£,A-Listers,ã¯ã¾ã¡ã2,竹å,å·æ·»è²´ç,ä¹ ä¿é彦,éäºä¿ä»,飯ç°ç¥åº,ä¸æç¥æ,è¦ä¸ããã,å¾è¤ç§å®£,天éç¥ä»,奥éå¹¹ä¹,WEB+DB PRESSç·¨éé¨åºç社/ã¡ã¼ã«ã¼: æè¡è©è«ç¤¾çºå£²æ¥: 2012/12/22ã¡ãã£ã¢: 大åæ¬è³¼å ¥: 11人 ã¯ãªãã¯: 94åãã®ååãå«ãããã° (10件) ãè¦ã RecommendEngineãä½ããã Fluentd Casual Talks LT #fluentd #fluentdcasual Fluentdã使ã£ã¦NginxLogãMysqlã«ãªã¢ã«ã¿ã¤ã ã§æ ¼ç´ãã - Yuta.Kikuchiã®æ¥è¨ èå³é£åååºåã«ããããããã³ã°ã®å¾®å¦ãªç¥èã ããæ´»ããã¦æè¿ã¯ä»äºããã¦ãã@yutakikucã§ããã
VMä¸ã®ã¹ã¬ã¼ããã³ãã¼ãã¦ãã¹ã¬ã¼ãï¼ãä½æã ã¹ã¬ã¼ãï¼ã®ãã¹ãåããã³IPã¢ãã¬ã¹ãmy.cnfã®server-idãå¤æ´å¾ã mysqlãèµ·åãããã 以ä¸ã®ã¨ã©ã¼ãæ¢ã¾ããªãäºè±¡ãçºçãã¦å°ä¸æéã¯ã¾ã£ãã®ã§ã対å¦æ¹æ³ãã¡ã¢ã [Note] Slave: received end packet from server, apparent master shutdown: [Note] Slave I/O thread: Failed reading log event, reconnecting to retry, log 'mysql-bin.XXXXXX' at position XXXXXXXXX [Warning] Storing MySQL user name or password information in the master info repository i
ããè¡ãã®ã§ã¡ã¢ã ãã¹ã¿ã¨ã¹ã¬ã¼ãã®ãã¹ãåã以ä¸ã¨ä»®å®ããã ãã¹ã¿ï¼ masterdb ã¹ã¬ã¼ãï¼ slavedb ã¾ããã¹ã¬ã¼ã対象ã®DBã¯ä»¥ä¸ã¨ããã some_db_production ãã¹ã¿ä¸ã®MySQLã§ã®ä½æ¥ ã¬ããªã±ã¼ã·ã§ã³ç¨ã¦ã¼ã¶ã¼ã®ä½æ ã¾ã ç¡ããã°ä½ã£ã¦ããããã®ä¾ã ã¨ã©ã®ãã¹ãããã§ãæ¥ç¶ã§ããã®ã§ã å¿ è¦ã«å¿ãã¦IPã¢ãã¬ã¹ã§ã®å¶éãããããã¨ã 1 2 mysql> GRANT REPLICATION SLAVE ON *.* TO repl_user@"%" IDENTIFIED BY 'hogehoge'; mysql> FLUSH PRIVILEGES; ã¹ãããã·ã§ããã®ä½æ(åå¾ãã¤ã¤ã¹ã¬ã¼ãã¸éãï¼ ãã³ããåããªããå§ç¸®ãã¹ã¬ã¼ãDBã«éãè¾¼ãããã¼ã¿ãå¤ãã¨æ°æéãããã ããã§ã¯è»¢éé度ãåªå ããããããæå·åæ¹å¼ã軽éã®ãã®ãã¦ããã
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}