mysql
my.cnfã«ã¯[group]ã¨ãããªãã·ã§ã³ã°ã«ã¼ããæ¸ãã¦ãã°ã«ã¼ãæ¯ã«è¨å®ãã§ãã¾ãããªãã·ã§ã³ã°ã«ã¼ãã«ã¯ç¹æ®ãª[client]ã¨ããã®ãããã¾ãã [client]ãªãã·ã§ã³ã°ã«ã¼ãã¯ããã¹ã¦ã®ã¯ã©ã¤ã¢ã³ãããã°ã©ã (mysqldã¯é¤ãï¼ã«ãã£ã¦è§£èªããã¾ããããã«â¦
MySQL 5.1ã§ä½¿ã£ã¦ãmy.cnfã試ãã«5.6ã§åãããã«ããã¨ãã®å·®åããç¶²ç¾ çã«ã¯èª¿ã¹ã¦ãªããã§ä»ã«ãå»æ¢ã«ãªã£ããã©ã¡ã¼ã¿ã¯ããããã§ããããã¾ã§åèã¾ã§ã«ã # log-binã«ãã©ã¡ã¼ã¿æå®ããªãã¨æããã¾ã -log-bin +log-bin = mysqld-bin # old-pasâ¦
DDLã¨ãã¼ã¿ã¯æ«å°¾ã«ç¤ºãã¾ãããè¤åã¤ã³ããã¯ã¹ãå¹ãã¯ãã®ã¯ã¨ãªãªãã ãã©ããã¦ãè¡æ°ãå¤ãã¦å°ã£ãã¨ããã話ã§ãã(MySQL 5.1.55) ãã®ã¯ã¨ãªã§è¿ã£ã¦ããè¡æ°ã¯246件ãªãã§ãããããã«ãã¦ã¯ããã¦ãè¡æ°(rows)ããããå¤ãã§ããwhereå¥ã§ä½¿ã£â¦
æ§æ [appãµã¼ã] -> [lvs] -> [MySQL]群 DRã§MySQLã®ã¹ã¬ã¼ã群ã«ãã¼ããã©ã³ã¹ appãµã¼ãã¯DBã³ãã¯ã·ã§ã³ã®ãã¼ãªã³ã°ãæ°¸ç¶åããã¦ãã åé¡ã®ç¾è±¡ DBãµã¼ãä¸ã§ã¯mysqldã¸ã®ã³ãã¯ã·ã§ã³ãåå¨ããã®ã«ãappãµã¼ãä¸ã§ã¯ã³ãã¯ã·ã§ã³ãåå¨ããªãã(nâ¦
以ä¸ãã¦ã©ããªãã¦ãªãã®ã§[è¦æ¤è¨¼]ã§ããããã¾ãhbstudy#13ã§[twitter:@nippondanji]ããã®ã»ãã·ã§ã³ãèãã¦ã¦æãã¤ãããã¨ãè¤æ°å°ã¹ã¬ã¼ããããã¨ããã¹ã¿ããã¦ã³ããå ´åã«ã©ã®ã¹ã¬ã¼ãããã¹ã¿ã«ææ ¼ãããã¹ãã調ã¹ãã®ãããã©ãã§ããéåâ¦
ã©ããããã«ã¡ã¯ãå°å¤ªãç·åä¸å¹´ã®ãµã¼ãã¼ã¨ã³ã¸ãã¢ã§ããå æ¥è¡ãããhbstudy#13ã® [twitter:@nippondanji]ããã®ã»ãã·ã§ã³(ã¹ã©ã¤ã) ã§ããBLACKHOLEã¹ãã¬ã¼ã¸ã¨ã³ã¸ã³ã使ãã°ãInnoDBãªãã¼ãã«ã®ææ°é転(ãã¼ãã«ãã¼ã¿ã空èªã¿ãã¦ãbuffer poâ¦
è¤æ°å°ããMySQLã®ã¹ãã¼ã¯ã¨ãªãã°ãããã¡ãã¡DBãµã¼ãã«ãã°ã¤ã³ãã¦èªãã®ãããã©ãããã log_output = FILE,TABLE ã¨ãã¦ãã¼ãã«ã«å ¥ãã¦ãªã¢ã¼ãããSELECTã§ããããã«ããã®ã¯ï¼ â ãã¼ãã«ã«å ¥ããå ´åãquery timeã¨lock timeã®åãTIMEåã«ãªâ¦
long_query_time = 0.5 ã¨ãé¾å¤ãå°ããã«ãã¦ãã¹ãã¼ã¯ã¨ãªãåºãªããªã£ããã©ãCPU(user)使ç¨çé«ãã¨ãããªãã足å¼ã£å¼µã£ã¦ãã¯ã¨ãªãããã£ã½ããªãã¨ããå ´åã®ã話ã§ãããå®é²ãã®éããç¾å¨çµ¶è³é²è¡ä¸ã§ãã®ã§ãé次åãããã£ããæ¸ã足ãã¦ããâ¦
ä»ã¾ã§MySQLã®ã¯ã¨ãªãã£ãã·ã¥ã¯ã¯æå¹ã«ãã¦ããã§ãããWebãµã¼ãã¹ã ã¨ãã£ãã·ã¥ããããããããªã¯ã¨ãªã¯ãããªã«å¤ããªãããã©ããã§è¦ããããã§ãã(失念â¦)ã¯ã¨ãªãã£ãã·ã¥ããªãã«ããã(éã«)ããã©ã¼ãã³ã¹ãä¸ãã£ãã ãè² è·ãä¸ãã£ãã ãã¨â¦
èªåãå«ããInnoDB Pluginã®ä½¿ç¨ãæ¤è¨ãã¦ã人ãå¤ãã®ã§ã¯ãªããã¨æãã®ã§ãããã¡ã¨æ°ã«ãªããã°ãè¦ãããã®ã§è¿½è©¦ãã¦ã¿ã¾ããã Bug #47621 MySQL and InnoDB data dictionaries will become out of sync when renaming columns http://bugs.mysql.câ¦
ã¬ããªã±ã¼ã·ã§ã³ãã¦ãMySQLã§ããã¹ã¿ãã¹ã¬ã¼ããé害åæ¢ããå ´åã®ãªã«ããªãã©ã³ ã§ãæ²ããã´ã¼ã«ã§ãããããã¹ã¿ãè½ã¡ã¦ããã¼ããå¯ã¦ããããããã«ãããããã»ã¼ã§ããã®ã§ãã»ã¨ãã©ãµã¼ãã¹ãåæ¢ãããã¨ãªãããã§ã¤ã«ãªã¼ãããæ§ãã¹ã¯â¦
drop table if exists t; create table t ( iid int ,nid int ,bid binary(3) ,msg varchar(69) ,key (iid) ,key (bid) ) ENGINE=InnoDB; insert into t values (1,1,1,"ichi"),(2,2,2,"ni"),(3,3,3,"san") ,(4,4,4,"si"),(5,5,5,"go"),(6,6,6,"roku") ; ãªâ¦
MySQLã§ãã¬ããªã±ã¼ã·ã§ã³ãã¼ã¹ã®HAãªæ§æã«ã¤ãã¦èããã¡ã¢ã§ãã3å°(ã¨ããã2å°ï¼1å°)ãããããªãã¨æã£ã¦ãã¦ãååã¯ãã®çç±ããå¾åã§ã¯{ãã¹ã¿,ã¹ã¬ã¼ã}ã{åèµ·ä¸è½ã«ãªã£ã,ã¡ãã£ã¨ãã¦ã³ãã¦ãã復帰ãã}å ´åã®ãªã«ããªãã©ã³ã«ã¤ãã¦æ¸ãâ¦
MySQLã§ãã¡ãã¡show tables;ã¨ãæã¤ã®ãã ããã\tã¿ãããªaliasè¨å®ã§ããªãã®ããªã http://twitter.com/weboo/status/1658300902 ãããreadlineã®ãã¯ãã使ãã°ããã®ãã¼ http://twitter.com/weboo/status/1658314333 ãªãã»ï¼ã£ã¦ãã¨ã§ã¡ãã£ã¨è¨â¦
追è¨: rehash(auto-rehashãå«ã)ããã¨ãSQLæã®è£å®(seleã§ã¿ãæéµã¨ã)ãå¹ããªããªããã¨ãã¯ãåããã®äººã«æãã¦ãããã¾ããã å人çã«ã¯ãSQLã¯ãmysql> help selectãã¨ãã§ãªã³ã©ã¤ã³ãã«ããã³ãã£ã¨åºãã®ã§ãã¹ãã¼ãã®è£å®ãã§ããããªãSQLâ¦
MySQL ABã®ãªãã¡ã¬ã³ã¹ããã¥ã¢ã«ã«ã MySQL AB :: MySQL 5.0 Reference Manual :: 14 High Availability, Scalability, and DRBD ãªãã¦ã»ã¯ã·ã§ã³ãã§ãã¦ãã®ã«ä»ãã£ãæ°ãã¤ããã(çµæ§åãããã£ãï¼)ããèªãã§ãªãï¼ããã¾ããï¼ãããã©ãä¸ãä¸ãâ¦
MySQL 4.1.1以éãªããSHOW SLAVE STATUSã§Seconds_Behind_Masterã¨ããã®ãè¦ãããããã§ããããé 延ç§æ°ã®ææ¨ã¨ãã¦ä½¿ããã£ã½ãã Seconds_Behind_MasterThis field is an indication of how âlateâ the slave is: When the slave SQL thread is activâ¦
ã¨ããé¢æ°ãããã®ãç¥ã£ãã http://dev.mysql.com/doc/refman/4.1/ja/miscellaneous-functions.html http://dev.mysql.com/doc/refman/5.0/en/miscellaneous-functions.html#function_get-lock ãã§ã«ããã«åãã¦ããmysqldãããã®ãªãããã使ã£ã¦è¤æ°â¦
WEB+DB PRESS Vol.37ä½è : WEB+DB PRESS ç·¨éé¨åºç社/ã¡ã¼ã«ã¼: æè¡è©è«ç¤¾çºå£²æ¥: 2007/02/23ã¡ãã£ã¢: 大åæ¬è³¼å ¥: 2人 ã¯ãªãã¯: 15åãã®ååãå«ãããã° (38件) ãè¦ãè¦æ¬èªå±ãã¾ãããä»åã®é£è¼ãMySQL5 éæå£ãã¯æ¥æ¬èªå¦çã«ã¤ãã¦ãããã£ã±â¦
MySQLã®ã¢ãã¿ããã®ã«ä¾¿å©ãªmytopãªãã§ãããMySQL 5ã«å¯¾ãã¦ä½¿ãã¨ãã¯ã¨ãªã®å²å表示ãå ¨é¨ã¼ãã«ãªã£ã¦ãã¾ã£ããã¾ããããã¯ãMySQL 5.0.2ã§SHOW STATUSæãå¤æ´ãããGLOBALãSESSIONã¨ãããªãã·ã§ã³ãæå®ã§ããããã«ãªã£ããã¨ã«èµ·å ãã¾ãããâ¦
InnoDB vs MyISAM vs Falcon benchmarks - part 1 ãèªãã ãèå³æ·±ãã£ããã ãã ã¨ãã³ãªã®ã§ãæã£ããã¨ãã¡ã¢ã£ã¦ã¿ãã ããã°ãFalcon ã¾ã çã¾ããã¦ãªã®ã§ãã³ããã¼ã¯ã®çµæã¯åèç¨åº¦ã«ã InnoDB vs MyISAM The second goal of benchmark was a pâ¦
5åã§ã§ãããMySQLã®ã¡ã¢ãªé¢ä¿ã®ãã¥ã¼ãã³ã°ï¼ 5åã¯çãããããï½
ã¡ã¨éã空ãã¾ãããWEB+DB PRESS Vol.34ã«å¯ç¨¿ããè¨äºãå ¬éãã¾ããã MySQL5éæå£ - ã¹ãã¬ã¼ã¸ã¨ã³ã¸ã³ã®åå³ (2) InnoDBã®XA対å¿ÃbinlogÃæ§è½ãããã®è©±ã¯MySQL 5.0ã§ã¯çµæ§ããã¢ããã§ã¯ãªãªããã¨æãã¾ãã éæã®åã« å¤åã¹ãã¬ã¼ã¸ã¨ã³ã¸ã³ã®â¦
mMeasureã¯ãMySQLã®ç¶æ ã常æ測å®ããMySQLã®ãã¥ã¼ãã³ã°ãã¤ã³ããã¢ããã¤ã¹ãããMySQLå°ç¨ã¢ãã¿ãªã³ã°ã½ããã§ãã MySQLã®ä¸»è¦ãªãµã¼ãã¼å¤æ°ãã¹ãã¼ã¿ã¹ã¯ãæï¼æ¥ï¼é±ï¼æï¼å¹´ã®åä½ã§ãã¸ã¥ã¢ã«ã«ã°ã©ãåããããã©ã¦ã¶ã§åç §ãããã¨ãã§ãã¾â¦
MySQL Performance Blog » What to tune in MySQL Server after installation ã¨ãããããã©ã¡ã¼ã¿ãæãåºãã¦ã¿ãã詳細ã¯ãªãªã¸ãã«ã®ã¨ã³ããªãåç §ãã¦ãã ããã¾ãm(_ _)m key_buffer_size innodb_buffer_pool_size innodb_additional_pool_size innoâ¦
æåããã½ã¼ã§ãããmregexp-1.0ããªãªã¼ã¹ãã¾ããã mregexp - MySQLã§æ¥æ¬èªã®æ£è¦è¡¨ç¾ãæ±ã ãã¤ãã£ãã®REGEXPã«ä¸æºããæã¡ã®æ¹ã¯æ¯éã試ãã¦ããã ãããï¼
è¶ ã»æ¥µãã!MySQLä½è : åäºæµ,å¿æå彦,ã²ããã¾ããã,æ¾ä¿¡åç¯åºç社/ã¡ã¼ã«ã¼: ç¿æ³³ç¤¾çºå£²æ¥: 2006/10/04ã¡ãã£ã¢: 大åæ¬è³¼å ¥: 2人 ã¯ãªãã¯: 24åãã®ååãå«ãããã° (15件) ãè¦ããããã(10/4)çºå£²ããããã®ã ãã¯ã«ä½æ¬ãè¨äºãæ¸ãã¾ãããç®â¦
ã¹ãã¼ã¯ã¨ãªãã°ããã¤ã¯ãç§ã§è¨é²ããããã slow query log filter slow query log parser ãªã©ãã¹ãã¼ã¯ã¨ãªãã°éè¦ã
Linuxã«ã¯DRBDã¨ãããã®ãããã¾ããDRBDã¨ã¯ä½ãï¼ ç°¡åã«ããã¨ããã©ã¼ãªã³ã°ã§ãããã©ã¼ã¨ãã£ã¦ããRAID-1ã®ããã«ãã£ã¹ã¯toãã£ã¹ã¯ã§ã¯ãªããï¼ã¤ã®ç°ãªããµã¼ãéã®ãããã¯ã¼ã¯è¶ãã®ãã©ã¼ãªã³ã°ã§ããRAIDã®å ´åã¯ããã£ã¹ã¯æ éã®èæ§ã¯é«ã¾â¦
Vol.34ãåºãã®ã§ãVol.33ã®è¨äºã MySQL5éæå£ - ã¹ãã¬ã¼ã¸ã¨ã³ã¸ã³ã®åå³ (1ï¼ ãå ¬éãã¾ããã¼ Vol.34, 33å ±ã«ãè³å³ãã ãããm(_ _)mWEB+DB PRESS Vol.34ä½è : WEB+DB PRESSç·¨éé¨åºç社/ã¡ã¼ã«ã¼: æè¡è©è«ç¤¾çºå£²æ¥: 2006/08/24ã¡ãã£ã¢: 大åæ¬ ã¯â¦