½â¾öphpmyadmin ´ò¿ªÊý¾Ý±í½Ï¶à£¬Êý¾ÝÁ¿½Ï´óµÄÊý¾Ý¿âʱ³öÏÖ³¬Ê±µÄÎÊÌâ
ÓÃphpmyadmin´ò¿ªÊý¾Ý±í½Ï¶à£¬Êý¾ÝÁ¿½Ï´óµÄÊý¾Ý¿âʱ£¬»á³öÏÖ³¬Ê±£¬»òÕߵȰëÌì´ò¿ªÁË˵Êý¾Ý¿âûÓÐ±í¡£²¢ÇÒ¼´±ã´ò¿ªÁË£¬ÔÙ½øÐÐÆäËûä¯ÀÀ£¬±à¼£¬sqlµÈ²Ù×÷£¬Ò³ÃæÒ²ÊÇÏ൱ÂýµÄ£¬ÂýµÈ¼¸ºõÎÞ·¨ÈÌÊÜ¡£ÕâÀïÂýÒ²¾ÍÂýÔÚÈ¡µÃ±í״̬µÄ SHOW TABLE STATUS Óï¾ä¡£SHOW TABLE STATUS ·µ»Ø±íµÄÃû×Ö£¬ÀàÐÍ£¬ÁÐÊý£¬´óС£¬Ê±¼äµÈÏà¹ØÐÅÏ¢¡£ÕâЩÐÅÏ¢²»ÒªÒ²°Õ¡£ÏÂÃæ×ÅÊÖ¸ÄÒÔÏÂÁ½¸öµØ·½¾Í¿ÉÒÔÁË¡£
ÒÔ phpMyAdmin 3.1.2 ΪÀý(²»Í¬°æ±¾¿ÉÄÜ»áÓвîÒì)£º
´ò¿ª libraries/Table.class.php
²éÕÒ if (! isset(PMA_Table::$cache[$db][$table][$info]) || $force_read) { ¿ÉÒÔ¿´µ½ if (! isset(PMA_Table::$cache[$db][$table][$info]) || $force_read) { PMA_Table::$cache[$db][$table] = PMA_DBI_fetch_single_row('SHOW TABLE STATUS FROM ' . PMA_backquote($db) . ' LIKE \'' . $table . '\''); } ÕâÀïÊÇ×ó±ßÊý¾Ý±íÁбíʱÓõ½µÄ ¸Ä³É if (! isset(PMA_Table::$cache[$db][$table][$info]) || $force_read) { //PMA_Table::$cache[$db][$table] = PMA_DBI_fetch_single_row('SHOW TABLE STATUS FROM ' . PMA_backquote($db) . ' LIKE \'' . $table . '\''); PMA_Table::$cache[$db][$table] = array('Name'=>$table); }
×ó±ßÊý¾Ý±íµ¼º½Êó±ê·ÅÉÏÈ¥»á³öÏÖһЩ±í´´½¨Ê±¼ä£¬×î½ü¸üÐÂʱ¼äµÈÐÅÏ¢¡£ÕâЩÐÅÏ¢Òª²»Òª¶¼ÐС£
´ò¿ª libraries/database_interface.lib.php
²éÕÒ foreach ($databases as $each_database) { ¿ÉÒÔ¿´µ½ if (true === $tbl_is_group) { $sql = 'SHOW TABLE STATUS FROM ' . PMA_backquote($each_database) .' LIKE \'' . PMA_escape_mysql_wildcards(addslashes($table)) . '%\''; } else { $sql = 'SHOW TABLE STATUS FROM ' . PMA_backquote($each_database); } $each_tables = PMA_DBI_fetch_result($sql, 'Name', null, $link); ¸Ä³É if (true === $tbl_is_group) { $sql = 'SHOW TABLE STATUS FROM ' . PMA_backquote($each_database) .' LIKE \'' . PMA_escape_mysql_wildcards(addslashes($table)) . '%\''; $each_tables = PMA_DBI_fetch_result($sql, 'Name', null, $link); } else { //$sql = 'SHOW TABLE STATUS FROM ' $sql = 'SHOW TABLES FROM ' . PMA_backquote($each_database); $each_tables = PMA_DBI_fetch_result($sql, 'Tables_in_'.$each_database, null, $link); foreach ($each_tables as $key=>$row){ $each_tables[$key]['Name'] = $row['Tables_in_'.$each_database]; } } //$each_tables = PMA_DBI_fetch_result($sql, 'Name', null, $link);
¸ÄÍêºóÓÒ±ßÏÔʾÊý¾Ý±íÃû£¬ÆäËû¼Ç¼Êý£¬ÀàÐÍ£¬´óСµÈÐÅÏ¢¶¼²»ÄÜÕý³£ÏÔʾ¡£ÒòΪûÓмÆËã¼Ç¼Êý£¬ä¯ÀÀÁ´½ÓҲûÓÐÁË¡£¿ÉÒÔµã»÷×ó±ßµÄÊý¾Ý±íµ¼º½À´ä¯ÀÀ¡£ÕâÑù¸ÄºóÓ¦¸ÃÒ»½øÈ¥²»¶à¾Ã¾ÍÄÜÏÔʾ³öÀ´¡£
ÍƼöÐÅÏ¢
- ¡¾ÊÓƵ²¥·Å¡¿JplayerÊÓƵ²¥·ÅÆ÷µÄʹÓÃ
- memcacheÄÚ´æÔÀí
- Memcache¼¼Êõ·ÖÏí£º½éÉÜ¡¢Ê¹Óᢴ洢¡¢Ëã·¨¡¢ÓÅ»¯....
- php³£ÓÃÕýÔò±í´ïʽ
- phpÐÔÄܼà²âÄ£¿éXHProf
- ÈÃCI¿ò¼ÜÖ§³Öservice²ã
- ʹÓÃPHPÉú³É´øLOGOµÄ¸öÐÔ»¯¶þάÂëͼÏñ
- ¹ØÓÚCodeIgniterÄã¿ÉÄܲ»ÖªµÀµÄ5¸ö֪ʶµã
- Memcache ºÁÃ뼶³¬Ê±¼°ÆäËû³£¼ûÎÊÌâ»ã×Ü
- [PHP±Ê¼Ç]PHPQueryÒ»¸ö´¦ÀíDOMµÄÀûÆ÷
ÈÈÃÅÐÅÏ¢
- nohup: redirecting stderr to stdou....
- ʹÓÃlog_formatΪNginx·þÎñÆ÷ÉèÖøüÏêϸµÄÈÕÖ¾¸ñʽ
- jquery easyUI--dataGrid-Json
- [Ô´´]·ÂGoogle Reader¡¢ÐÂÀË΢²©¡¢ÌÚѶ΢²©µ....
- ÀûÓÃKeepalived+mysql¹¹½¨¸ß¿ÉÓÃMySQLË«Ö÷×Ô¶....
- Nginx+keepalivedʵÏÖ¸ºÔؾùºâºÍË«»úÈȱ¸¸ß¿ÉÓÃ
- jqueryʵÏÖÒ³Ãæ¼ÓÔؽø¶ÈÌõ
- Rolling cURL: PHP²¢·¢×î¼Ñʵ¼ù
- codeigniter ·ÓÉÖÕ¼«ÓÅ»¯(url rewrite)
- linuxÏÂÉèÖÃsshÎÞÃÜÂëµÇ¼
×î½ü¸üÐÂ
- PHP»ñÈ¡Óû§µÄÕæʵIP£¬²¢ÅжÏÊÇ·ñÄÚÍøIP
- PHP ´íÎóÈÕÖ¾ error_log
- ÀûÓÃbigpipe»úÖÆʵÏÖÒ³ÃæÄ£¿éµÄÒì²½äÖȾ chunked¼¼Êõ
- php¿ØÖÆÎļþÏÂÔØËÙ¶È
- js + php ¶ÁÈ¡¡¢²¥·ÅÊÓƵÁ÷ ¼æÈÝfirefox£¬c....
- ¡¾ÊÓƵ²¥·Å¡¿JplayerÊÓƵ²¥·ÅÆ÷µÄʹÓÃ
- UNICODE Óë UTF-8 µÄ¹Øϵ
- memcacheÄÚ´æÔÀí
- Memcache¼¼Êõ·ÖÏí£º½éÉÜ¡¢Ê¹Óᢴ洢¡¢Ëã·¨¡¢ÓÅ»¯....
- phpʹÓÃmb_detect_encoding¼ì²â×Ö·û´®±àÂë
ÆÀÂÛ