APIdays Paris 2019 - Innovation @ scale, APIs as Digital Factories' New Machi...
ã©ããfujiharaã§ããä»å¹´ãæ®ããããã§ããã å¹´ã å¯ãæãã度åããå¼·ããªã£ã¦ããã®ã§ãããåºç¤ä»£è¬ãè½ã¡ã¦ãã®ã åå ãã¨æ¯ãã¦ãã¾ãã ä»åã¯ã¨ããæ¡ä»¶ã§ãµã¼ã移è¡æã«MySQLã®ãã¼ã¸ã§ã³ãä¸ãã 8.x ã«ãªã£ãã¨ãã« PHPããæ¥ç¶ã§ããªãç¾è±¡ãçºçãã¦è§£æ±ºããæ¹æ³ããç´¹ä»ãã¾ãã èæ¯ ã¨ããããã¸ã§ã¯ãã§ãµã¼ã移è¡ãå¿ è¦ã ã£ãã®ã§ããã ã³ã³ãã³ãã移è¡ãã¦ããããã¼ã¸ã表示ããã¨MySQLã«ã¤ãªãããªãã åå ã¨ã©ã¼ã確èªããã¨ãã¹ã¯ã¼ãã§å¼¾ããã¦ã¾ããã åå ãæ¢ãã¨MySQL 8ã§ã¯ ãã¹ã¯ã¼ããããã©ã«ãã§æå·åãããã®ã§(cache_sha2_password) ããã°ã©ã ããæ¥ç¶ããå ´åãããã«å¯¾å¿ãã¦ããªãã¨æ¥ç¶ãã§ããªãã¨ã®ãã¨ã ä»åã¯ããã°ã©ã å´ãå¤æ´ããªãã£ãã®ã§ã MySQLå´ã§ä»¥ä¸ã®ç¨ã«å¯¾å¿ãã¾ããã # /etc/my.cnf [mysq
ããã«ã¡ã¯ãã¢ããªã±ã¼ã·ã§ã³åºç¤ãã¼ã ã®éæ¨(@a_o_k_i_n_g)ã§ããå æ¥è¦ªç¥ãããææ¯ããæãã¤ããããã®ã§ MySQL ã® JOIN ã®ãã¨ãèãã¦å¿ã®å¹³éãä¿ã£ã¦ãã¾ããã ãµã¤ãã¦ãºã®è£½åã®ã²ã¨ã¤ã§ãã kintone ã¯ãã¼ãºã«å¿ãã¦èªç±ã«æ¥åã¢ããªã®ãããªãã®ãæ軽ã«ä½ããã¨ãã§ãããã¼ã¿ã®æ¤ç´¢æ¡ä»¶ãã½ã¼ãæ¡ä»¶ãç´°ããã«ã¹ã¿ãã¤ãºå¯è½ã§ãæ§ã ãªã¬ãã«ã§ã®ã¢ã¯ã»ã¹æ¨©ãè¨å®å¯è½ã¨ããé常ã«ä¾¿å©ãªãã¼ã«ã§ãã ããããã®æ©è½ãæ¯ããè£å´ã§ã¯è¤éãªã¯ã¨ãªãçºè¡ãããMySQL ã«å¤å¤§ãªè² è·ãããã¦ãã¾ãããµã¤ãã¦ãºã®ã¯ã©ã¦ãã«ã¯æ°åãã©ãã¤ãã«ç»ã MySQL ãã¼ã¿ããããæ°åä¸ä»¶ãªã¼ãã¼ã®ãã¼ãã«ãè¤æ° JOIN ããã¯ã¨ãªãæ¯ç§ã®ããã«å®è¡ãããã¨ãããã¨ã³ã¸ãã¢éã滾ãç°å¢ã§ãã ç¾å¨ãµã¤ãã¦ãºã§ã¯æ§è½æ¹åã«åãå ¥ãã¦ãããåããã®æ¥åã«å¾äºãã¦ãã¾ããä¾ãã°2018å¹´
ã¯ããã« ãã ï¼Â´ã»Ïã»ï½) ããããããã¼ãã³ãã¦ã¹ã¸ã ãã®mysqlã¯ãµã¼ãã¹ã ãããã¾ãsystemctl start mysqld ãã¦è½ã¡çãã¦æ¬²ããã ããããã¾ãããªãã ãæ¸ã¾ãªãã ä»ã®é¡ãã£ã¦è¨ããããè¬ã£ã¦è¨±ãã¦ããããã¨ãæã£ã¦ããªãã ã§ãããã®ã¿ã¤ãã«ãè¦ãã¨ããåã¯ããã£ã¨è¨èã§ã¯è¨ã表ããªã ãã¨ããããã¿ãããªãã®ãæãã¦ãããã¨æãã 殺ä¼ã¨ããä¸ã®ä¸ã§ãããããæ°æã¡ãå¿ããªãã§æ¬²ãã ããæã£ã¦ããã®è¨äºãããããã ãããã注æãèãããã ã¨ããããã§mysqlãdisãã¾ããdisãã ããªã®ã§å 容ã¯ããã¾ããããããï¼ mysql ã«ã¯ç½ ããã£ã±ã ãããªãã§ããç½ ããã£ã±ããªãã§ãã奥ããã ããããã¯ããããmysqlã«éã£ã話ã§ã¯ãªããã§ããã©ä¾ãã°ããããã®ï¼ MySQLã®ãã¥ã¼ãã³ã°ãªãã¦ãããããã©ã¼ãã³ã¹è½ã¡ãã ãã ããããã©ã«
第32å PostgreSQL åå¼·ä¼(2015å¹´10æ10æ¥)ã§ç»å£ãã¦ãã¾ããã å 容ã¯åã«æ¸ããã¨ã³ããªã¼ã® MySQL使ããç¥ãã¹ãPostgreSQLã¨ã®éãã¨å¤ãããªãä¸ã¤ã®ã㨠MySQL使ãã®äººãPostgreSQLãå§ããã¨ãã®ç½ ãã¾ã¨ãã¦ã¿ã ãå ã«çºè¡¨ãã¦ãã¾ããã ã¨è¨ã£ã¦ãä»åã¯åå è ãPostgresSQLã«è©³ããåæã ã£ãã®ã§MySQLãä¸å¿ã«è©±ããã¾ããã å®éã®è³æã¯ä¸è¨ã®ã¨ããã§ãã å½æ¥ã¯ãããªæ®å½±ããã£ãã®ã§ãã®ãã¡åç»ãä¸ããã¨æãã¾ãã 第32å PostgreSQL åå¼·ä¼ã¾ã¨ã ~ togetter ~ æµç³ã«ï¼æéã¯ç²ãã¾ããã å 容ã¨ãã¦ã¯ç ããªããªãããã«é¢ç½ããããä¼ãããã¨æã£ãã®ã§ãããªããªãé£ããã£ãã§ãã ååã¯MySQLã¨PostgreSQLã®æ¹åæ§ã®éããã¡ã¤ã³ã«ãã¾ããã å¾åã¯MySQLã¯åãå®éã«ããã£ãäºãªã©ãã¡ã¤
ä¾ãã°ããããªè²©å£²å®ç¸¾ãã¼ãã«ãããã¨ãã¾ãã create table sales (sales_date datetime,item_count int) 販売ããæ¥æã¨ã販売åæ°ã管çãã¦ãã¾ãã é©å½ã«ãã¼ã¿ãå°å ¥ã insert into sales(sales_date, item_count) values ('2015-04-01 10:00:00',2), ('2015-04-01 12:00:00',1), ('2015-04-01 15:00:00',2), ('2015-04-02 10:00:00',1), ('2015-04-02 12:00:00',1), ('2015-04-04 15:00:00',1), ('2015-04-06 10:00:00',3) +---------------------+------------+ | sales_dateÂ
mac yosemite ã«ã¦mysqlãã¤ã³ã¹ãã¼ã«ããã¨ããã ã¡ã¢ãªããã«é£ãï¼500M)ãã¦ãã å¶éãè¨å®ããæ¹æ³ã¯ä¸è¨ã®éãã fujita$   mysql --help | grep my.cnf order of preference, my.cnf, $MYSQL_TCP_PORT, /etc/my.cnf /etc/mysql/my.cnf /usr/local/etc/my.cnf ~/.my.cnf å·¦ããé ã«è¨å®ãã¡ã¤ã«ãèªãã§ããã®ã§ããã§ã«ãã¡ã¤ã«ãããã°è¿½è¨ ãªããã°ãã¡ã¤ã«ãä½ããã ã¤ã³ã¹ãã¼ã«ãã¦ããã°ãããã©ã®è¨å®ãã¡ã¤ã«ãããã¯ããªã®ã§ã¾ãã¯ããã è¦ã¤ãã¦ããã fujita$  sudo find /usr/ -name "my-default*" ãããã³ãã¼ã㦠/etc/my.cnfããä½ãã /etc/my.cnfã«ä¸è¨ã追è¨ããã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}