ã¬ã¤ã¢ã®å¤æã 20051129 ãè¥è ãï¼ä¼ç¤¾ãåµã é«ã¾ãèµ·æ¥å®¶ãã¼ã å æ±ç¤¾é·ã®ãã°ãæã¡ã§ç¤¾é·æ¥ãå¦ã¹ï¼ã - 51:19 - Jun 7, 2008 () Rate: ã¬ã¤ã¢ã®å¤æã 20051129 ãè¥è ãï¼ä¼ç¤¾ãåµã é«ã¾ãèµ·æ¥å®¶ãã¼ã å æ±ç¤¾é·ã®ãã°ãæã¡ã§ç¤¾é·æ¥ãå¦ã¹ï¼ã Embed video <embed id="VideoPlayback" src="http://video.google.com/googleplayer.swf?docid=-4206873481927121312&hl=en&fs=true" style="width:400px;height:326px" allowFullScreen="true" allowScriptAccess="always" type="application/x-shockwave-flash"> </emb
質å Check Tweet Pagerã使ã£ã¦ãmysqlãããã¼ã¿ãåãåºãã¦ãåå²è¡¨ç¤ºãè¡ãªã å½¹ã«ç«ã£ãï¼6件 質åè ï¼nakadoramsn æ稿æ¥æï¼2010/08/19 17:44 å°ãåº¦ï¼ Pagerã使ã£ã¦ãmysqlãããã¼ã¿ãåãåºãã¦ãåå²è¡¨ç¤ºãè¡ãªãããã <?php require_once("MYDB.php"); $conn = db_connect(); //æ¤ç´¢ start// $search_key=""; if(isset($_POST['search_key'])) $search_key = addslashes($_POST['search_key']); $sql=<<<EOS SELECT * FROM inscription WHERE site like '%$search_key%' OR url like
ç°¡åãªãã¼ã¸ã³ã°æ©è½ä»ãã§æ¸ãã¦ã¿ã¾ããã ç´°é¨ã§ãªã«ãããä¿®æ£ãå¿ è¦ãããããªãã®ã§ããã°ã£ã¦ãã ããã ï¼è³ªåæãè¦ãã¨GETã使ããããªè¨è¿°ã§ãããããã¯POSTã§å¦çãã¦ã¾ãï¼ æ¤ç´¢æ©è½ã¨ãä»ãã¦ã¿ãã®ãåå¼·ã«ãªãã¨æãã¾ããã <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta http-equiv="Pragma" content="No-Cashe"> <meta http-equiv="Cache-Control" content="No-Cache"> <title>ãªã¹ã</title> <script type="text/javascript"> <!-- function changepage (page) { document.forms[
ã¦ã¼ã¶ã¼å士ã®ã¤ãªãããå ã«æç³»åã«140æåã®ã¡ãã»ã¼ã¸ã20åã»ã©è¡¨ç¤ºããââãTwitterã®ãµã¼ãã¹ã¯ãæåã«ãã¦ãã¾ãã¨å®ã«ã·ã³ãã«ã ããèå¾ã«ã¯é常ã«å¤§ããªæè¡çãã£ã¬ã³ã¸ã横ããã£ã¦ãããã¤ã¶ããæ°ã¯æé10å件ãçªç ´ãTwitterãæµããã¡ãã»ã¼ã¸æ°ã¯ç§é120ä¸ã«ãéããã¦ã¼ã¶ã¼å士ã®ã¤ãªããã表ãã½ã¼ã·ã£ã«ã»ã°ã©ãã§ããã¡ã¢ãªã«è¼ãéãè¶ ãã¦ãããéæ¹ããªãã¹ã±ã¼ã«ã®ãã¼ã¿ãã¤ãªãã§ããã«ãé¢ãããã0.1ç§ä»¥ä¸ã§Webãã¼ã¸ã®è¡¨ç¤ºãå®äºãããªããã°ãªããªãããã®ããã«åãã¼ã¿ã¹ãã¬ã¼ã¸ã¯1ï½5msç¨åº¦ã§å¿çããªããã°ãªããªãã Twitterã®ãªã¹ãæ©è½ã®å®è£ ã§ããã¸ã§ã¯ããªã¼ãã¼ãåãããã¨ãããNick Kallenæ°ãæ¥æ¥ãã2010å¹´4æ19æ¥ãã2æ¥éã®äºå®ã§éå¬ä¸ã®ãQCon Tokyo 2010ãã§åºèª¿è¬æ¼ãè¡ã£ãããData Architecture
ããã¯å¾ç¥æµã§ããTwitterãæåããããè¨è¨ããã¦ããã°ããã£ãã®ã«ãã¨ãã£ãæå³ã¯ããã¾ãããããããã³ãã£ã¼ã¨ãã¦åæã®æåªå 課é¡ã¯ãä¸æ¥ãæ©ããµã¼ãã¹ãå ¬éããããã¨ã§ããããã®ããã«Ruby on Railsãæ¡ç¨ããã¤ã³ãã©è¨è¨ãå¾åãã«ãããã¨ããå½¼ãã®å¤æã¯å¦¥å½ãªãã®ã§ãã£ãã¨æãã¾ãã ãã®ããã§ããããä»äººã®äºä¾ããå¦ã¶ããã«ãèªåãå½äºè ã¨åãç¶æ³ã¨ä»®å®ããã©ããããã¨ãèãããããèãã¦ã¿ããã¨æãã¾ãã Twitterã®ç¯ãããã¹ã¯ãå½¼ãã®éæãè¦ãéãã§ã¯ã·ã¹ãã ã®ãã¶ã¤ã³ã誤ã£ããã¨ã ï¼åæã«ãã®ãã¨ã«æ°ã¥ããè»éä¿®æ£ãè¡ããã¨ãã¦ãããã¨ã¯ãã°ããããã¨ã ï¼ã Twitter is, fundamentally, a messaging system. Twitter was not architected as a messaging system,
ãã£ã·ãã£ã·ã«ãªãããã§ãããï¼ç¬ æ°ã«ãªã£ãã®ã§èª¿ã¹ã¦ã¿ã¾ããã MyIsamã«å¯¾ãã¦ã¯ãã¯ããOSã«ä¾åãã¦ãã¾ãã ãã ããã¼ãã«ä½ææã«Row_sizeã決ããããã㧠ãããæå®ãã¦ããã°ããµã¤ãºã«å¶éãããã£ã¦ããã®ã§ã¯ãªããã¨æãã¾ãã åèURLã«è¨è¼ããã¦ãã¾ãã 確èªã§ããã show table status like 'TABLE_NAME' \G ãå®è¡ããã¨ãData_lengthã»Max_data_length ã表示ããã¾ããData_lengthãç¾å¨ã§Maxã»ã»ãæ大å¤ã®ã¯ãã§ããã ããããã©ã®ç¶æ ã«ãªã£ã¦ãã¾ãã§ããããï¼ è¿ãã®ã§ããã°ãMaxãå¢ãããªããã°ãªãã¾ããã ãã®å ´åãalteræã§ã»ã» alter table TABLE_NAME max_rows=ããã«rowæ°è¨å ¥; Avg_row_lengthã¨ãmax_rowsã§Max_da
ååã¯ãè«çè¨è¨ã®ãã¼ã¿ã¢ããªã³ã°ã«ã¯ERã¢ãã«ã使ç¨ããã¨èª¬æãã¾ããããERã¢ãã«ã¯ERå³ã使ç¨ãã¦è¡¨ç¾ãããã¨ãã§ãã¾ããERå³ã®è¨è¿°æ¹æ³ã«ã¯ãããããªãã®ãããã¾ãããä»åã¯ãä¸è¬çã«æ®åãã¦ããIDEF1Xã«ãã£ã¦ERå³ãè¨è¿°ããæ¹æ³ã«ã¤ãã¦èª¬æãã¾ãã IDEF1Xã¨ã¯ IDEF1Xã¯ãIDEFï¼Integration Definitionï¼ã¨å¼ã°ãããã·ã¹ãã ããã¾ãã¾ãªå´é¢ããåæãã¦ã¢ããªã³ã°ãè¡ãããã®æ¹æ³ã®1ã¤ã§ãããã«ãã¼ã¿ãã¼ã¹ã®æ¦å¿µè¨è¨ã«ããã¦ERå³ãè¨è¿°ããæ¹æ³ã¨ãã¦ãã使ç¨ããã¾ãã ã¾ããIDEF1Xã¯ãç±³å½ã®NISTï¼å½ç«æ¨æºæè¡ç 究æï¼ã«ãã£ã¦FIPSï¼é£é¦æ å ±å¦çæ¨æºï¼ã¨ãã¦æ¨æºåããã¦ãããIEï¼Information Engineeringï¼ã¨ä¸¦ãã§ERå³ã®è¨è¿°æ¹æ³ã¨ãã¦ä¸è¬çãªãã®ã§ãã IDEF1Xã§ã¯ãERã¢ãã«ã«ãããå®ä½ãåè§å½¢ã¨ãã¦è¨
ãã Schema ã§ã¯åé¡ç¡ã INSERT ãåºæ¥ãã®ã«å¥ã® Schema ã§ã¯æååãããã¨è¨ãè¯ã解ããªãç¾è±¡ã«æ°æéæ©ã¾ãããããç§ã®å ´å㯠character_set_database ã latin1 ã®ã¾ã¾ã ã£ããã¨ãåå ã ã£ãã â æªãä¾ > show variables like 'character\_set\_%'; +--------------------------+--------+ | character_set_client | utf8 | | character_set_connection | utf8 | | character_set_database | latin1 | | character_set_filesystem | binary | | character_set_results | utf8 | | character_se
MySQL æååããé²ããæåã³ã¼ãã®ç¢ºèªã¨è¨å® 2007.01.15 MySQL æååããé²ãããã«ãæåã³ã¼ãã®ç¢ºèªã¨è¨å®ãè¡ãã â ç¾å¨ã®æåã³ã¼ãã®è¨å®ã調ã¹ã mysql> show variables like 'character_set%'; ã¾ãã¯ã mysql> status â ãã¼ã¿ãã¼ã¹ã®æåã³ã¼ãè¨å®ã調ã¹ã ãã¼ã¿ãã¼ã¹ãã¨ã«æåã³ã¼ããè¨å®ã§ããã®ã§ãç¾å¨ã®æåã³ã¼ãã調ã¹ãã ï¼ãã¼ãã«ãã¨ã§ã¯ãªãããã¼ã¿ãã¼ã¹ãã¨ï¼ mysql> show create database ãã¼ã¿ãã¼ã¹å; æåã³ã¼ããæå®ãã¦ãã¼ã¿ãã¼ã¹ãä½ãã«ã¯ã mysql> create databaase xxxdb default character set utf8; â ãã¼ãã«ã®æåã³ã¼ãè¨å®ã調ã¹ã ãã¼ãã«ãã¨ã«æåã³ã¼ããè¨å®ã§ããã®ã§ãç¾å¨ã®æåã³ã¼ãã調ã¹ãã
mysql> status; -------------- mysql Ver 14.7 Distrib 4.1.20, for redhat-linux-gnu (i386) using readline 4.3 Connection id: 36 Current database: staff2006 Current user: maiha@localhost SSL: Not in use Current pager: lv Using outfile: '' Using delimiter: ; Server version: 4.1.20 Protocol version: 10 Connection: Localhost via UNIX socket Server characterset: latin1 Db characterset: latin1 Client char
⺠2018 (1) ⺠1æ (1) ⺠2017 (4) ⺠6æ (3) ⺠5æ (1) ⺠2016 (15) ⺠12æ (4) ⺠11æ (1) ⺠10æ (2) ⺠7æ (3) ⺠6æ (1) ⺠5æ (3) ⺠1æ (1) ⺠2015 (13) ⺠12æ (1) ⺠10æ (1) ⺠9æ (1) ⺠6æ (1) ⺠5æ (1) ⺠3æ (2) ⺠2æ (3) ⺠1æ (3) ⺠2014 (11) ⺠12æ (1) ⺠9æ (2) ⺠8æ (2) ⺠6æ (1) ⺠4æ (4) ⺠2æ (1) ⺠2013 (15) ⺠12æ (3) ⺠11æ (3) ⺠8æ (2) ⺠7æ (4) ⺠5æ (1) ⺠4æ (2) ⺠2012 (7) ⺠10æ (1) ⺠7æ (1) ⺠4æ (3) ⺠1æ (2) ⺠20
ãããã話é¡ã§ã¯ãªãã®ã§ãèªåã¸ã®ã¡ã¢ã£ã¦ãã¨ã§ããã MySQLã§ãUTF-8ã§å ¥ããæåããWindowsãã½ã³ã³ã®mysqlã®ã³ãã³ãããã³ããã§ã¿ãã¨ãæååããã¾ãã ï¼ãã®ã¨ããMySQLã®DBèªä½ã¯ãutf-8ã«è¨å®ããã¦ãã¦ããã¼ã¿ã¯æ£å¸¸ã«å ¥ã£ã¦ãããã®ã¨ãã¾ãï¼ã ãã®æååããç´ããMySQLã®ã³ãã³ãããã³ããã§ãUTF-8ã®æåãè¦ããããã«ããæ¹æ³ã MySQLã®ã³ãã³ãããã³ããããã SET NAMES SJIS; ã¨å ¥åãã¦ãªã¿ã¼ã³ã 次ã«selectããã¨ãã¡ããã¨æåãè¦ããï¼SET NAMESã¯ãã¯ã©ã¤ã¢ã³ãã®æåã³ã¼ããæå®ãããã¯ã©ã¤ã¢ã³ããSJISã¨ãããã¨ã§ãUTF-8ã®ãã¼ã¿ã¯SJISã«å¤æãã¦è¡¨ç¤ºãã¦ãããã¿ããã ï¼
mysqlã¯ã©ã¤ã¢ã³ãã§ããã«ããã¤ãã®ãã¼ã¿ãåå¨ãããããªãã¼ãã«ãSELECTããã¨æåã³ã¼ãã®è¨å®ã«ãã£ã¦ã¯æååãããã¦ãã¾ãã ãã¼!! ã£ã¦ãªãã¾ãã ããã¯ãã³ãã³ãããã³ããã®æåã³ã¼ãããCP932(Shift JISãæ¡å¼µãããã®)ãã§åºå®ãªããèµ·ãã£ã¦ãã¾ãåé¡ã§ãå ·ä½çã«ã¯mysqlã¯ã©ã¤ã¢ã³ãã®ãã£ã©ã¯ã¿ã»ããã®è¨å®ãShift JIS以å¤ã®è¨å®ã ã¨æååããã¦ãã¾ãããã§ãã ã¯ã©ã¤ã¢ã³ãã®ãã£ã©ã¯ã¿ã»ããã®æåã³ã¼ãã¯ã以ä¸ã®ããã«statusã³ãã³ããå®è¡ããã¨ãããã¾ãã mysql> use test_db; Database changed mysql> status; -------------- mysql Ver 14.7 Distrib 4.1.12a, for Win32 (ia32) Connection id: 1 Current dat
ã©ããªã¿ã¤ãã«ã ãã£ã¦æãã§ããï½ï¼ å æMysqlã³ãã³ãããã³ããã§è§¦ã£ã¦ã¿ããå ¨è§æåã®æ¥æ¬èªãæååããã¾ãã£ã¦çµæ§ããã¤ãã¾ããï¼ æ¤ç´¢ãããçµæ§ç§ã¨åããããªçç¶ãåºã¦ãã人ãããã¿ããã§ããï¼ ããã§ãã¦æ¤ç´¢ãããåçã¨ãè¦ã¦ãã»ã¨ãã©è§£æ±ºããªãããã§ãï½ï¼ æ¤ç´¢ã®ããæ¹ãæªãã£ãã®ããªï¼ï¼ ç´ äººã¯ã¿ããªæååãããããããªãããªã£ã¦ãã¨ã§è¨å¿µã«æ¸ãã¦ã¿ã¾ãï¼ mysqlã®è¨å®ã¯utf8ã«ãã ã¨ã³ã³ã¼ãã¯utf8ããã¼ã ãããã§ãï¼ã¨ããããã¨ã§utf8ã«ãã¾ãï¼ Mysqlã¯5.1ã§è¨å®ã¯utf8ã§ãï¼ Mysqlãã©ã«ãå ã«ããmy.iniã«ã¯default-character-set=utf8ã¨æ¸ãã¦ãããã¨æãã¾ãï¼ Mysqlãã¤ã³ã¹ãã¼ã«ããã¨ãã«utf8ãé¸æãã¦ããã°ãããªã£ã¦ããã¨æãã¾ãï¼ ããutf8以å¤ããã£ããMysqlã®ã¦ã£ã¶ã¼ãããutf8ãé¸
ããã«ã¡ã¯ããã«ã¡ã¯ã11ã¤ã³ãMacBook Airã欲ããã¦ãã¾ããªãiwanagaã§ãã ååã®è¨äº ã幸ãã«ãã好è©ãé ããæ§ã§é常ã«ããããã§ããå¬ãããªã£ã¦ãã¤ãããã°ã£ã¦ç¬¬ï¼å¼¾ãæ¸ãã¦ãã¾ãã¾ãããå¼ãç¶ããã½ã¼ã·ã£ã«ã²ã¼ã ã§ãã使ããããã¼ãã«ã¿ã¤ãæ¯ã«ã¡ãã£ã¨ãããã¯ããã¯ãç´¹ä»ãã¦ããã¾ãã ä»åã¯ã¡ãã£ã¨ã©ã¤ããªæãï¼èªã¿ç©ã«ãªã£ã¦ãã¾ã£ã¦ãã¾ãããã¦ã¼ã¶IDåä½ã§1ã¤ã ãæã¤ãã¼ã¿ãã¨ããã©ã¡ã¼ã¿ãªã©ã®ãã¹ã¿ã¼ãã¼ã¿ãã«ã¤ãã¦ã説æãããã¨æãã¾ããã¡ãªã¿ã«æ¬¡åã¯InnoDBã®ãã¼ã¿æ§é ã®ç°¡åãªèª¬æã¨è¤åãã©ã¤ããªã¼ãã¼ã®ãã¼ã¿ã«ã¤ãã¦ããã®æ¬¡ã§ç´¹ä»ãæããã¡ãã£ã¨ããã¢ãã¯ãªãã¯ããã¯ãæ§è½ç®¡çã®ããã®ææ³ãç´¹ä»ãããã¨ãäºå®ãã¦ãã¾ãã ãã®åã«ããã å æ¥è¡ããã JAPAN INNOVATION LEADERS SUMMIT ã§å¼ç¤¾æ¾ä¿¡ããã½ã¼ã·ã£ã«ã²ã¼ã ã®
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}