MySQLÊý¾Ý±íÀàÐÍ(ij¹«Ë¾µÄÃæÊÔÌâ)
MySQLµÄÊý¾Ý±íÀàÐͺܶ࣬MySQLÒ»¹²ÏòÓû§ÌṩÁË°üÀ¨DBD¡¢HEAP¡¢ISAM¡¢MERGE¡¢MyIAS¡¢InnoDBÒÔ¼°GemeniÕâ7ÖÖ±í¡£ÆäÖÐDBD¡¢InnoDBÊôÓÚÊÂÎñ°²È«Àà±í£¬¶øÆäËûÊôÓÚÊÂÎñ·Ç°²È«Àà±í¡£
DBD
Berkeley DB(DBD)±íÊÇÖ§³ÖÊÂÎñ´¦ÀíµÄ±í£¬ÓÉSleepycatÈí¼þ¹«Ë¾¿ª·¢¡£ËüÌṩMySQLÓû§ÆÚ´ýÒѾõŦÄÜ--ÊÂÎñ¿ØÖÆ¡£ÊÂÎñ¿ØÖÆÔÚÈκÎÊý¾Ý¿âϵͳÖж¼ÊÇÒ»¸ö¼«ÓмÛÖµµÄ¹¦ÄÜ£¬ÒòΪËüÃÇÈ·±£Ò»×éÃüÁîÄܳɹ¦µØÖ´Ðлò»Ø¹ö¡£
HEAP
HEAP±íÊÇMySQLÖдæÈ¡Êý¾Ý×î¿ìµÄ±í¡£ÕâÊÇÒòΪËûÃÇʹÓô洢ÔÚ¶¯Ì¬ÄÚ´æÖеÄÒ»¸öÉ¢ÁÐË÷Òý£¬²»¹ýÈç¹ûMySQL»ò·þÎñÆ÷±ÀÀ££¬ÕâЩÄÚ´æÊý¾Ý½«»á¶ªÊ§¡£
ISAM
ISAM±íÊÇÔçÆÚMySQL°æ±¾µÄȱʡ±íÀàÐÍ£¬Ö±µ½MyIASM¿ª·¢³öÀ´¡£½¨Òé²»ÒªÔÙʹÓÃËü¡£
MERGE
MERGEÊÇÒ»¸öÓÐȤµÄÐÂÀàÐÍ£¬ÔÚ3.23.25Ö®ºó³öÏÖ¡£Ò»¸öMERGE±íʵ¼ÊÉÏÊÇÓÖÒ»¸öMyISAM±íµÄ¼¯ºÏ£¬ºÏ²¢¶ø³ÉµÄÒ»¸ö±í£¬Ö÷ÒªÊÇΪÁËЧÂʵĿ¼ÂÇ£¬ÒòΪÕâÑù²»½ö½ö¿ÉÒÔÌá¸ßËٶȡ¢ËÑË÷ЧÂÊ¡¢ÐÞ¸´Ð§ÂʶøÇÒ»¹½ÚÊ¡ÁË´ÅÅ̿ռ䡣
MyIASM
MyIASM»ùÓÚÁËIASM´úÂ룬Ӧ¸Ã¿ÉÒÔ˵ÊÇIASMµÄÑÜÉúÆ·£¬²»¹ýÔö¼ÓÁ˲»ÉÙÓÐÓõÄÀ©Õ¹¡£ËüÊÇMySQLµÄĬÈÏÊý¾Ý±íÀàÐÍ£¬»ùÓÚÁË´«Í³µÄISAMÀàÐÍ£¬ISAMÊÇIndexed Sequential Access Method£¨ÓÐË÷ÒýµÄ˳Ðò·ÃÎÊ·½·¨£©µÄËõд£¬Ò»°ãÀ´Ëµ£¬ËüÊÇ´æ´¢¼Ç¼ºÍÎļþµÄ±ê×¼·½·¨¡£ÓëÆäËû´æ´¢ÒýÇæ±È½Ï£¬MyISAM¾ßÓмì²éºÍÐÞ¸´±í¸ñµÄ´ó¶àÊý¹¤¾ß¡£ISAM±í¸ñ¿ÉÒÔ±»Ñ¹Ëõ£¬¶øÇÒËüÃÇÖ§³ÖÈ«ÎÄËÑË÷£¬²»¹ýËüÃÇÊÇÊÂÎñ²»°²È«µÄ£¬¶øÇÒÒ²²»Ö§³ÖÍâ¼ü¡£Èç¹ûÊÂÎñ»Ø¹ö½«»áÔì³É²»ÍêÈ«»Ø¹ö£¬´Ó¶ø²»¾ß±¸Ô×ÓÐÔ¡£ËùÒÔ¼ÙÈçºöÂÔÊÂÎñÒÔ¼°·ÃÎʲ¢·¢ÐԵĻ°£¬²¢ÇÒÐèÒªÖ´ÐдóÁ¿µÄSELECT¼ìË÷Óï¾äµÄ»°£¬MyISAM½«ÊÇ×îºÃµÄÑ¡Ôñ¡£
MyIASM±È½ÏºÃµÄÔÒò£º
MyIASM±íСÓÚIASM±í£¬ËùÒÔʹÓýÏÉÙ×ÊÔ´¡£
MyIASM±íÔÚ²»Í¬µÄƽ̨É϶þ½øÖƲã¿ÉÒÆÖ²¡£
MyIASMÓµÓиü´óµÄ¼üÂë³ß´ç£¬¸ü´óµÄ¼üÂëÉÏÏÞ¡£
¶ÔÓÚMyISAM´æ´¢ÒýÇæÀ´Ëµ£¬ËüµÄ¶ÁËøºÍдËøÊÇ»¥³âµÄ£¬´Ó¶ø¶Áд²Ù×÷ÊÇ´®Ðеġ£ÄÇô£¬Ò»¸ö½ø³ÌÇëÇóij¸ö MyISAM±íµÄ¶ÁËø£¬Í¬Ê±ÁíÒ»¸ö½ø³ÌÒ²ÇëÇóͬһ±íµÄдËø£¬MySQLÈçºÎ´¦ÀíÄØ£¿´ð°¸ÊÇд½ø³ÌÏÈ»ñµÃËø¡£²»½öÈç´Ë£¬¼´Ê¹¶ÁÇëÇóÏȵ½ËøµÈ´ý¶ÓÁУ¬Ð´ÇëÇóºóµ½£¬Ð´ËøÒ²»á²åµ½¶ÁËøÇëÇó֮ǰ£¡ÕâÊÇÒòΪMySQLÈÏΪдÇëÇóÒ»°ã±È¶Á ÇëÇóÒªÖØÒª¡£ÕâÒ²ÕýÊÇMyISAM±í²»Ì«ÊʺÏÓÚÓдóÁ¿¸üвÙ×÷ºÍ²éѯ²Ù×÷Ó¦ÓõÄÔÒò£¬ÒòΪ£¬´óÁ¿µÄ¸üвÙ×÷»áÔì³É²éѯ²Ù×÷ºÜÄÑ»ñµÃ¶ÁËø£¬´Ó¶ø¿ÉÄÜÓÀÔ¶×èÈû¡£ÕâÖÖÇé¿öÓÐʱ¿ÉÄÜ»á±äµÃ·Ç³£Ôã¸â£¡ÐÒºÃÎÒÃÇ¿ÉÒÔͨ¹ýһЩÉèÖÃÀ´µ÷½ÚMyISAM µÄµ÷¶ÈÐÐΪ¡£Í¨¹
Ïà¹ØÎĵµ£º
mysql ±àÒë°²×°Óë±àÒë²ÎÊý
Ìí¼Ómysql×éºÍmysqlÓû§
[root@centos mysql]# groupadd mysql
[root@centos mysql]# useradd -g mysql mysql
±àÒëÓë°²×°
tar -zxvf mysql-5.1.35.tar.gz
./configure \
--prefix=/usr/local/mysql \
--localstatedir=/data/mysql/data \ m ......
[MySQLÓÅ»¯] -- ÈçºÎ¶¨Î»Ð§Âʽϵ͵ÄSQL
ʱ¼ä:2010-2-28À´Ô´:HaCMS¿ªÔ´ÉçÇø ×÷Õß:zhenpao
Ò»°ãͨ¹ýÒÔÏÂÁ½ÖÖ·½Ê½¶¨Î»Ö´ÐÐЧÂÊ½ÏµÍµÄ SQL Óï¾ä¡£ Âý²éѯÈÕÖ¾ÔÚ²éѯ½áÊøÒÔºó²Å¼Í¼£¬ËùÒÔÔÚÓ¦Ó÷´Ó³Ö´ÐÐЧÂʳöÏÖÎÊÌâµÄʱºò²éѯÂý²éѯÈÕÖ¾²¢²»Äܶ¨Î»ÎÊÌ⣬¿ÉÒÔʹÓà show processlist ÃüÁî²é¿´µ±Ç° MySQL ÔÚ½øÐеÄỊ̈߳¬° ......
[MySQLÓÅ»¯] -- ÈçºÎÁ˽âSQLµÄÖ´ÐÐƵÂÊ
ʱ¼ä:2010-2-28À´Ô´:HaCMS¿ªÔ´ÉçÇø ×÷Õß:chuxu
MySQL ¿Í»§¶ËÁ¬½Ó³É¹¦ºó£¬Í¨¹ý show [session|global]status ÃüÁî ¿ÉÒÔÌṩ·þÎñÆ÷״̬ÐÅÏ¢£¬Ò²¿ÉÒÔÔÚ²Ù×÷ϵͳÉÏʹÓà mysqladmin extended-status ÃüÁî»ñµÃÕâЩÏûÏ¢¡£ show [session|global] status ¿ÉÒÔ¸ù¾ÝÐèÒª¼ÓÉϲÎÊý&ldquo ......
PythonÓëMysql
Ò»¡¢°²×°MySQLdbÄ£¿é
ʹÓÃpythonÁ¬½ÓMysqlµÄÇ°Ìᣬ¾ÍÊÇÐèÒªÒ»¸öÈÃpythonÁ¬½Óµ½MysqlµÄ½Ó¿Ú£¬Õâ¾ÍÊÇMySQLdbÄ£¿é¡£
ÑéÖ¤ÊÇ·ñÒѾ°²×°ÁËMySQLdb£º
==========================================================
d:\usr\local\Python25>python
Python 2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v ......
·½·¨Ò»
ʹÓÃphpmyadmin£¬ÕâÊÇ×î¼òµ¥µÄÁË£¬ÐÞ¸Ämysql¿âµÄuser±í£¬²»¹ý±ðÍüÁËʹÓÃPASSWORDº¯Êý¡£
·½·¨¶þ
ʹÓÃmysqladmin£¬ÕâÊÇÇ°ÃæÉùÃ÷µÄÒ»¸öÌØÀý¡£
mysqladmin -u root -p password mypasswd
ÊäÈëÕâ¸öÃüÁîºó£¬ÐèÒªÊäÈërootµÄÔÃÜÂ룬ȻºórootµÄÃÜÂ뽫¸ÄΪmypasswd¡£
°ÑÃüÁîÀïµÄroot¸ÄΪÄãµÄÓû§Ãû£¬Äã¾Í¿ÉÒÔ¸ÄÄã ......