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-4.1.14-win32.zip½âѹºóµÃµ½mysql-4.1.14-win32Îļþ¼Ð£¬´ò¿ª´ËÎļþ¼ÐÔËÐÐsetup.exeÎļþ£¬Next£¬Custom¡¢Next£¬Change£¬½«Â·¾¶¸ÄΪd:\MySQL\MySQL Server 4.1\£¬OK£¬Next£¬Install£¬Íê³ÉºóÌø³ö´°¿ÚÈçͼ£º
µãÒ»ÏÂCancel£¬ÔÙÖ±µãFinish¡£ÏÖÔÚÌø³öÉèÖÃmysqlµÄ´°¿Ú£¬Èçͼ£º
Next£¬Next£¬Next£¬next£¬Next£¬Èç ......
¹ýÈ¥µÄÒ»¸öÔ£¬ÎҵŤ×÷ÖØÐĶ¼ÔںϷþÄ£¿éµÄ²âÊÔ¡£ÆÄÓÐһЩÊÕ»ñ¡£
´Ë´Î´óÁ¿ºÍmysql´ò½»µÀ£¬¶Ô²úÆ·µÄÊý¾Ý´æ´¢ÓÐÁ˱ȽÏÈ«ÃæµÄÕÆÎÕ¡£²¢´ÙʹºÍÖ´ÐÐÁËdbµÄ±í½á¹¹ºÍÊôÐԵļì²é¡£ºÏ·þͶ·Åºó£¬ÔÝδ·¢ÏÖÒò´íÎóÊý¾Ýµ¼ÖµÄbug»òʹʡ£
²¢ÔÚ²âÊÔ³õÆھ͹Ø×¢ºÍ¼ì²âÐÔÄÜÖ¸±ê£¬´Ùʹ³ÌÐò×öÁËÒ»´ÎÐÔÄܲâÊÔ£»¶ÔͶ·ÅʱµÄ·çÏÕÔöÇ¿ÁËÔ¤·ÀºÍ¿ØÖÆ¡£ ......
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¸ÄΪÄãµÄÓû§Ãû£¬Äã¾Í¿ÉÒÔ¸ÄÄã ......