mysqlÐÔÄÜÖ¸±ê
mysqladmin extended (¾ø¶ÔÖµ)
ÖصãÈ¥¼àÊÓµÄÖµÓУº
* Slave_running:Èç¹ûϵͳÓÐÒ»¸ö´Ó¸´ÖÆ·þÎñÆ÷£¬Õâ¸öÖµÖ¸Ã÷ÁË´Ó·þÎñÆ÷µÄ½¡¿µ¶È
* Threads_connected:µ±Ç°¿Í»§¶ËÒÑÁ¬½ÓµÄÊýÁ¿¡£Õâ¸öÖµ»áÉÙÓÚÔ¤ÉèµÄÖµ£¬µ«ÄãÒ²ÄܼàÊÓµ½Õâ¸öÖµ½Ï´ó£¬Õâ¿É±£Ö¤¿Í»§¶ËÊÇ´¦ÔÚ»îԾ״̬¡£
* Threads_running:Èç¹ûÊý¾Ý¿â³¬¸ººÉÁË£¬Ä㽫»áµÃµ½Ò»¸öÕýÔÚ£¨²éѯµÄÓï¾ä³ÖÐø£©Ôö³¤µÄÊýÖµ¡£Õâ¸öÖµÒ²¿ÉÒÔÉÙÓÚÔ¤ÏÈÉ趨µÄÖµ¡£Õâ¸öÖµÔں̵ܶÄʱ¼äÄÚ³¬¹ýÏÞ¶¨ÖµÊÇûÎÊÌâµÄ¡£µ±Threads_runningÖµ³¬¹ýÔ¤Éèֵʱ²¢ÇÒ¸ÃÖµÔÚ5ÃëÄÚûÓлØÂäʱ£¬ Ҫͬʱ¼àÊÓÆäËûµÄһЩֵ¡£
2£©mysqladmin extended(¼ÆÊýÆ÷)
* Aborted_clients:¿Í»§¶Ë±»Òì³£ÖжϵÄÊýÖµ£¨ÒòΪÁ¬½Óµ½mysql·þÎñÆ÷µÄ¿Í»§¶ËûÓÐÕý³£µØ¶Ï¿ª»ò¹Ø±Õ£©¡£¶ÔÓÚһЩӦÓóÌÐòÊÇûÓÐÓ°ÏìµÄ£¬µ«¶ÔÓÚÁíһЩӦÓóÌÐò¿ÉÄÜÄãÒª¸ú×Ù¸ÃÖµ£¬ÒòΪÒì³£ÖжÏÁ¬½Ó¿ÉÄܱíÃ÷ÁËһЩӦÓóÌÐòÓÐÎÊÌâ¡£
* Questions:ÿÃëÖÓ»ñµÃµÄ²éѯÊýÁ¿¡£Ò²¿ÉÒÔÊÇÈ«²¿²éѯµÄÊýÁ¿£¨×¢£º¿ÉÒÔ¸ù¾ÝÄãÊäÈ벻ͬµÄÃüÁî»áµÃµ½ÄãÏëÒªµÄ²»Í¬µÄÖµ£©¡£
* Handler_*:Èç¹ûÄãÏë¼àÊӵײ㣨low-level£©Êý¾Ý¿â¸ºÔØ£¬ÕâЩֵÊÇÖµµÃÈ¥¸ú×ٵġ£Èç¹ûHandler_read_rnd_nextÖµÏà¶ÔÓÚÄãÈÏΪÊÇÕý³£ÖµÏà²îÐüÊ⣬¿ÉÄÜ»á¸æËßÄãÐèÒªÓÅ»¯»òË÷Òý³öÎÊÌâÁË¡£Handler_rollback±íÃ÷ÊÂÎñ±»»Ø¹öµÄ²éѯÊýÁ¿¡£Äã¿ÉÄÜÏëµ÷²éÒ»ÏÂÔÒò¡£
* Opened_tables:±í»º´æûÓÐÃüÖеÄÊýÁ¿¡£Èç¹û¸ÃÖµºÜ´ó£¬Äã¿ÉÄÜÐèÒªÔö¼Ótable_cacheµÄÊýÖµ¡£µäÐ͵أ¬Äã¿ÉÄÜÏëÒªÕâ¸öֵÿÃë´ò¿ªµÄ±íÊýÁ¿ÉÙÓÚ1»ò2.
* Select_full_join: ûÓÐÖ÷¼ü£¨key£©ÁªºÏ£¨Join£©µÄÖ´ÐС£¸ÃÖµ¿ÉÄÜÊÇÁã¡£ÕâÊDz¶»ñ¿ª·¢´íÎóµÄºÃ·½·¨£¬ÒòΪһЩÕâÑùµÄ²éѯ¿ÉÄܽµµÍϵͳµÄÐÔÄÜ¡£
* Select_scan:Ö´ÐÐÈ«±íËÑË÷²éѯµÄÊýÁ¿¡£ÔÚijЩÇé¿öÏÂÊÇûÎÊÌâµÄ£¬µ«Õ¼×ܲéѯÊýÁ¿¸Ã±ÈÖµÓ¦¸ÃÊdz£Á¿£¨×¢£ºSelect_scan³ýÒÔ×ܲéѯÊýÁ¿ÉÌÓ¦¸ÃÊdz£Êý£©¡£Èç¹ûÄã·¢ÏÖ¸ÃÖµ³ÖÐøÔö³¤£¬ËµÃ÷ÐèÒªÓÅ»¯£¬È±·¦±ØÒªµÄË÷Òý»òÆäËûÎÊÌâ¡£
* Slow_queries:³¬¹ý¸ÃÖµ£¨--long-query-time£©µÄ²éѯÊýÁ¿£¬»òûÓÐʹÓÃË÷Òý²éѯÊýÁ¿¡£¶ÔÓÚÈ«²¿²éѯ»áÓÐСµÄ³åÍ»¡£Èç¹û¸ÃÖµÔö³¤£¬±íÃ÷ϵͳÓÐÐÔÄÜÎÊÌâ¡£
* Threads_created:¸ÃÖµÓ¦¸ÃÊǵ͵ġ£½Ï¸ßµÄÖµ¿ÉÄÜÒâζ×ÅÄãÐèÒªÔö¼Óthread_cacheµÄÊýÖµ£¬»òÄãÓöµ½Á˳ÖÐøÔö¼ÓµÄÁ¬½Ó£¬±íÃ÷ÁËDZÔÚµÄÎÊÌâ¡£
3£©mysqladmin processlist or "SHOW FULLPROCESSLIST"ÃüÁî
Äã¿ÉÒÔͨ¹ýʹÓÃÆäËûµÄͳ¼ÆÐÅÏ¢µÃµ½ÒÑÁ¬½ÓÏß³ÌÊýÁ¿ºÍÕýÔÚÔËÐÐÏ̵߳ÄÊýÁ¿£¬¼ì²éÕýÔÚÔËÐеIJéѯ»¨Á˶೤ʱ¼äÊÇÒ»¸öºÃÖ÷Òâ¡£Èç¹
Ïà¹ØÎĵµ£º
×î½ü¹«Ë¾×¼±¸Ê¹ÓÃÏîÄ¿¹ÜÀíµÄÍøÕ¾DotProject£¬¹«Ë¾ËäÈ»²»´ó£¬µ«ÊÇÇ£Éæµ½µÄÒµÎñÒ²ÊǺܸ´Ôӵģ¬ËùÒÔÐèÒª¶¨Ê±È¥±£´æÊý¾Ý¿âµÄÐÅÏ¢ÒÔ·ÀÖ¹Êý¾Ý¿â±ÀÀ£»òÕßÆäËûµÄÔÒòÔì³ÉµÄÊý¾ÝËðʧ£¬ÕâÑù¾ÍÐèÒª½øÐÐÊý¾Ý¿âµÄ±¸·Ý¡£
DotProjectʹÓõÄÊÇMysqlÊý¾Ý¿â£¬±¸·ÝMysqlÊý¾Ý¿âµÄÒ»¸ö±È½ÏºÃµÄ·½·¨¾ÍÊÇ ......
·ÖÒ³¹¦ÄÜÔÚÈκÎÓ¦ÓÃÖж¼±È½Ï³£¼û£¬¶ø
Mysql
µÄ´æ´¢¹ý³Ì·ÖÒ³±ØÐëͨ¹ý¶¯Ì¬
sql
À´Ö´ÐС£·ÖÒ³¶ÔÓ¦µÄ
offset
ºÍ
row_count
±ØÐëÏÈÓÃ
concat
º¯Êý±ä³É×Ö·û´®×é×°µ½
sql
ÖУ¨ÈçÓï¾ä
1
£©£¬¶ø²»ÄÜÖ±½ÓʹÓã¨ÈçÓï¾ä
2
£¬
Mysql
²»Ö§³Ö£©¡£
Mysql
·ÖÒ³¹¦ÄܵÄʵÏÖÈçÏ´úÂëËùʾ£º
&nbs ......
<!-- [if gte mso 10]>
ÒÔÏÂÄÚÈÝÀ´×ÔÍøÂ磬ÒѲâÊÔ¡£
½áÂÛ£º
mysql
ÐÐËø²»°²È«£¬ËæÊý¾ÝµÄ±ä»¯£¬¿ÉÄÜ»á³öÏÖÐÐËøÎÞЧ£¡Òò´Ë£¬·ÇÈ·¶¨Çé¿öÏ£¬²»Òª¶Ô
mysql
±í¼ÓÐÐËøÀ´¿ØÖÆÒµÎñÂß¼¡£
ÓÉÓÚÒµÎñÂß¼µÄÐèÒª£¬±ØÐë¶ÔÊý¾Ý±íµÄÒ»Ðлò¶àÐмÓÈëÐÐËø£¬¾Ù¸ö×î¼òµ¥µÄÀý×Ó£¬Í¼Êé½èÔÄϵͳ¡£¼ÙÉè
id=1
µÄÕâ±¾Êé¿â´æΪ
1
£ ......
<!-- [if gte mso 10]>
MySQL5.1.x
°æ±¾ÖÐÒýÈëÁËÒ»ÏîÐÂÌØÐÔ
EVENT
£¬¹ËÃû˼Òå¾ÍÊÇʼþ¡¢¶¨Ê±ÈÎÎñ»úÖÆ£¬ÔÚÖ¸¶¨µÄʱ¼äµ¥ÔªÄÚÖ´ÐÐÌض¨µÄÈÎÎñ£¬Òò´Ë½ñºóһЩ¶ÔÊý¾Ý¶¨Ê±ÐÔ²Ù×÷²»ÔÙÒÀÀµÍⲿ³ÌÐò£¬¶øÖ±½ÓʹÓÃÊý¾Ý¿â±¾ÉíÌṩµÄ¹¦ÄÜ¡£´Ë¹¦ÄÜÊǶÔ
Oracle
µÄ
Job/Schedule
µÄÄ£·Â£¬
5.1.X
°æ±¾ÒÔÉϲÅÖ§³Ö¡£
& ......
ÔÚ½üÆÚµÄÏîĿά»¤¹¤×÷ÖУ¬Ê±³£³öÏÖÖ÷¼üÖظ´µÄÒì³£¡£¾¹ýһϵÁÐ×ÊÁϵIJéѯ֮ºó£¬·¢ÏÖʱhibernateÓ³ÉäÎļþÅäÖÃÎÊÌâ¡£
mysqlÌṩÖ÷¼ü“×Ô¶¯ÔöÁ¿”µÄÅäÖã¬Ö¸¶¨¸ÃÀàÐ͵ÄÖ÷¼ü£¬mysqlÄܹ»×Ô¶¯¼ÓÒ»¡£
ÔÚhibernateÓ³ÉäÎļþÖУ¬¹ØÓÚÖ÷¼üµÄÅäÖò»ÄÜÊÇ
<generator class="increment"&g ......