PHPã«ã³ãã¡ã¬ã³ã¹2016ã®è³æã§ã http://phpcon.php.gr.jp/2016/
å¿ è¦ã¡ã¢ãªéï¼ã°ãã¼ãã«ãããã¡ã®ãµã¤ãºï¼ï¼åã¹ã¬ããã®ãããã¡ãµã¤ãºã®åè¨ Ã æ大æ¥ç¶æ°(max_connections)ï¼ åã¹ã¬ããã®ãããã¡ãµã¤ãºã®åè¨ã¨ã¯ã以ä¸ã®å¤ã®åè¨å¤ã§ãã sort_buffer_size myisam_sort_buffer_size read_buffer_size join_buffer_size read_rnd_buffer_size ã°ãã¼ãã«ãããã¡ã®ãµã¤ãºã¯ã以ä¸ã®å¤ã®åè¨å¤ã§ãã key_buffer_size innodb_buffer_pool_size innodb_log_buffer_size innodb_additional_mem_pool_size net_buffer_length â»å®è·µãã¤ããã©ã¼ãã³ã¹MySQL ã«ãã ã¨ããã®ã ããä¸è¬çã«ãããã¦ãè¨ç®å¼ã¯ããã«ããã«+query_cache_sizeããã©
ãã¼ã¿ãã¼ã¹ãåããµã¼ãã® MySQL ã¸ã³ãã¼ããã³ãã³ã # ãã¼ã¿ãã¼ã¹ãã³ãã¼ãdb1ï¼user1ãpassword1ï¼ ãã db2ï¼user2ãpassword2ï¼ã« mysqldump -u user1 -ppassword1 -n db1 | mysql -u user2 -ppassword2 db2 ãã¼ã¿ãã¼ã¹ãå¥ã®ãµã¼ãã® MySQL ã¸ã³ãã¼ããã³ãã³ã # å¥ãµã¼ãã«ãã¼ã¿ãã¼ã¹ãã³ãã¼ãdb1ï¼user1ãpassword1ï¼ ãã hostname ãµã¼ãï¼ã¦ã¼ã¶å hostuserï¼ã® db2ï¼user2ãpassword2ï¼ã« mysqldump -u user1 -ppassword1 -n db1 | ssh hostuser@hostname mysql -u user2 -ppassword2 db2 ã³ãã¼å ãã³ãã¼å ãªã©ç°å¢ãæ´çï¼ ã²ã¨ã¤ã®
ãµã¼ãã¼ã®ã¨ã©ã¼ãæ¤ç¥ããã®ã§ç¢ºèªãã¦ã¿ãã¨ãmysql ã®ãã°ãã¡ã¤ã«ã«ä¸è¨ã®ãããªã¨ã©ã¼ãåºã¦ãã¾ããã ã©ããã WordPress ã§ä½¿ç¨ãã¦ãããã¼ã¿ãã¼ã¹ã® wp_options ã¨ãããã¼ãã«ã®èªã¿è¾¼ã¿ã§ã¨ã©ã¼ãçºçãã¦ããã¿ããã§ãã 150102 23:20:17 [ERROR] Got error 127 when reading table './wordpress/wp_options' 調ã¹ã¦ã¿ãã¨ããã¼ãã«ãç ´æããå¯è½æ§ãé«ãããã⦠ã¨ãããã¨ã§ããã¼ãã«ã修復ããæé ãç´¹ä»ãã¾ãã â»CUI ä¸ã§æä½ãã¦ãã¾ãããSQL æããå®è¡ã§ããã°ããã®ã§ãphpmyadmin çã§ã修復å¯è½ã§ãã Mysql ã®ç ´æãããã¼ãã«ã修復 mysql ã«ãã°ã¤ã³ #mysql ã«ãã°ã¤ã³ sudo mysql -u root -p ãã¼ã¿ãã¼ã¹ã®é¸æ mysql>u
ããã«ã¡ããã·ã¹ãã ã¨ã³ã¸ãã¢ã®ãªã§ã¼ã¿ã§ãã ååã¯ããªãã·ã§ã³ãããã¼ã£ã¨ä¸¦ã¹ã¦ç´¹ä»ãã¾ããã mysqldumpã®ä½¿ãæ¹ ãªãã·ã§ã³ç·¨ mysqldumpã®ãªãã·ã§ã³ãå¤ããã¦ãã©ããã©ãããã°ããã®ããããã¾ããã ã¨ãããã¨ã§ãä»åã¯ãããããå®ç¨çãªå½¢ã§é²ãããã¨æãã¾ãã ä»åã¯ããã¼ãã«ããã¼ã¿ãã¼ã¹ãããã¯ã¢ããï¼ãªã¹ãã¢ããããåºæ¬çãªæ¹æ³ãã¾ã¨ãã¦ã¿ã¾ããï¼ ãã¼ãã« ã¾ãã¯ããã¼ãã«ãããã¯ã¢ããï¼ãªã¹ãã¢ããæ¹æ³ã§ãã 1.ãã¼ãã«ã®ãã³ã mysqldump -uroot -p -hlocalhost database_name table_name > filename ãã¼ãã«ã®å®ç¾©ã¨ãã¼ã¿ããã³ãããæ¹æ³ã§ãã ãã¼ãã«ã¯ã1ã¤ã ãã§ãªãè¤æ°æå®ãããã¨ãã§ãã¾ãã mysqldump -uroot -p -hlocalhost database_name
2014å¹´03æ14æ¥15:55 ã«ãã´ãªprogramming ãJavaScriptã New Relicã®ãªããªãåãæ°æ©è½ã試ãã¦ã¿ã ããã«ã¡ã¯ãããã°ãã¯ããã¯ãããããã¾ããæ ªå¼ä¼ç¤¾adingo é«æ©ã§ãã å¼ç¤¾adingoã¯æé200åimpãæãSSPãFluctããæä¾ãã¦ããã100å°è¿ããµã¼ãã§ãªã¯ã¨ã¹ããæãããã大è¦æ¨¡ãã¼ã¿ã®åæããã¦ããã¾ãã ãã¦ããããªä»äºã¨ã¯ç´æ¥ã®é¢ä¿ã¯ç¡ãã§ãããæè¿New Relicããªããªãåãæ°æ©è½ãβãªãªã¼ã¹ãã¦ããã®ã§ç°¡åãªç´¹ä»ããããã¨æãã¾ããNew Relicã¨ã¯ã¢ããªã±ã¼ã·ã§ã³ã¨ãµã¼ãã®ã¢ãã¿ãªã³ã°ãè¡ããµã¼ãã¹ã§ããyumã§agentãã¤ã³ã¹ãã¼ã«ããã ãã§æ軽ã«å°å ¥ã§ãã¾ããä»åç´¹ä»ããæ°æ©è½ã¯ãJSã®ã¨ã©ã¼ã¬ãã¼ãæ©è½ãã¨ãAJAXã®å®è¡æéã¬ãã¼ããã§ããªãªã¼ã¹æã¯ä»¥ä¸ã¨ãªãã¾ãã http://blog.n
ä»äºã§MySQLã®ããã©ã¼ãã³ã¹ãã¥ã¼ãã³ã°ããã¦ãã¦ãã¤ã³ããã¯ã¹ã«ã¤ãã¦åãã£ã¦ããªããã¨ãå¤ãã£ãã®ã§èª¿ã¹ããã¨ãã¡ã¢ãåºæ¬çãªã¨ããããå¦ç¿ããªãããã MySQLã®ã¤ã³ããã¯ã¹ã¯ãã«ã©ã ãç¹å®ã®å¤ããã¤ã¬ã³ã¼ãã®è¿ éãªæ¤ç´¢ã«ä½¿ç¨ããããã¤ã³ããã¯ã¹ã使ç¨ããã°ãæ°ç¾ã¨ãæ°åãã®ã¬ã³ã¼ããå ¥ã£ã¦ãããã¼ãã«ãããä¸çµã®ã¬ã³ã¼ããè¿ éã«è¦ã¤ãã¦åãåºããã¨ãå¯è½ã«ãªãã ããããã¤ã³ããã¯ã¹ã¯é度ãæ¹åãããã¨ãããããæ¿å ¥ã®éªéã«ãªã£ã¦é ããªããã¨ãããã ã¤ã³ããã¯ã¹ãé©åã«ä½¿ãããã«ãã¾ãã¯ã¤ã³ããã¯ã¹ã®åºæ¬æ¦å¿µãããããå¿ è¦ãããã ã¤ã³ããã¯ã¹ã®æ¦å¿µ ã¤ã³ããã¯ã¹ã¨ã¯ ã¤ã³ããã¯ã¹ã®ä»çµã¿ãç解ããã«ã¯ãã¾ãMySQLãã©ã®ããã«ã¯ã¨ãªã«å¿çããããç¥ãå¿ è¦ãããã ä¾ãã°ã SELECT * FROM phone_book WHERE last_name = 'Hoge'
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}