MySQL´æ´¢ÒýÇæ±È½Ï
MySQL³£ÓõĴ洢ÒýÇæΪMyISAM¡¢InnoDB¡¢MEMORY¡¢MERGE£¬ÆäÖÐInnoDBÌṩÊÂÎñ°²È«±í£¬ÆäËû´æ´¢ÒýÇ涼ÊÇ·ÇÊÂÎñ°²È«±í¡£
MyISAMÊÇMySQLµÄĬÈÏ´æ´¢ÒýÇæ¡£MyISAM²»Ö§³ÖÊÂÎñ¡¢Ò²²»Ö§³ÖÍâ¼ü£¬µ«Æä·ÃÎÊËٶȿ죬¶ÔÊÂÎñÍêÕûÐÔûÓÐÒªÇó¡£
InnoDB´æ´¢ÒýÇæÌṩÁ˾ßÓÐÌá½»¡¢»Ø¹öºÍ±ÀÀ£»Ö¸´ÄÜÁ¦µÄÊÂÎñ°²È«¡£µ«ÊDZÈÆðMyISAM´æ´¢ÒýÇ棬InnoDBдµÄ´¦ÀíЧÂʲîһЩ²¢ÇÒ»áÕ¼Óøü¶àµÄ´ÅÅÌ¿Õ¼äÒÔ±£ÁôÊý¾ÝºÍË÷Òý¡£
MEMORY´æ´¢ÒýÇæʹÓôæÔÚÄÚ´æÖеÄÄÚÈÝÀ´´´½¨±í¡£Ã¿¸öMEMORY±íֻʵ¼Ê¶ÔÓ¦Ò»¸ö´ÅÅÌÎļþ¡£MEMORYÀàÐ͵ıí·ÃÎʷdz£µÃ¿ì£¬ÒòΪËüµÄÊý¾ÝÊÇ·ÅÔÚÄÚ´æÖеģ¬²¢ÇÒĬÈÏʹÓÃHASHË÷Òý¡£µ«ÊÇÒ»µ©·þÎñ¹Ø±Õ£¬±íÖеÄÊý¾Ý¾Í»á¶ªÊ§µô¡£
MERGE´æ´¢ÒýÇæÊÇÒ»×éMyISAM±íµÄ×éºÏ£¬ÕâЩMyISAM±í±ØÐë½á¹¹ÍêÈ«Ïàͬ¡£MERGE±í±¾ÉíûÓÐÊý¾Ý£¬¶ÔMERGEÀàÐ͵ıí½øÐвéѯ¡¢¸üС¢É¾³ýµÄ²Ù×÷£¬¾ÍÊǶÔÄÚ²¿µÄMyISAM±í½øÐеġ£
MyISAM±í»¹Ö§³Ö3Öв»Í¬µÄ´æ´¢¸ñʽ£º
1 ¾²Ì¬±í
2 ¶¯Ì¬±í
3 ѹËõ±í
¾²Ì¬±íÊÇĬÈϵĴ洢¸ñʽ£¬¾²Ì¬±íÖеÄ×ֶζ¼ÊǷDZ䳤µÄ×ֶΣ¬ÓŵãÊÇ£º´æ´¢·Ç³£Ñ¸ËÙ£¬ÈÝÒ×»º´æ£¬³öÏÖ¹ÊÕÏÈÝÒ×»Ö¸´£»È±µãÊÇ£ºÕ¼ÓõĿռäͨ³£±È¶¯Ì¬±í¶à¡££¨×¢Ò⣺ Ôڴ洢ʱ£¬ÁеĿí¶È²»×ãʱ£¬Óÿոñ²¹×㣬µ±Ê±ÔÚ·ÃÎʵÄʱºò²¢²»»áµÃµ½ÕâЩ¿Õ¸ñ£©
¶¯Ì¬±íµÄ×Ö¶ÎÊDZ䳤µÄ£¬ÓŵãÊÇ£ºÕ¼ÓõĿռäÏà¶Ô½ÏÉÙ£¬µ«ÊÇƵ·±µØ¸üÐÂɾ³ý¼Ç¼»á²úÉúËéƬ£¬ÐèÒª¶¨ÆÚ¸ÄÉÆÐÔÄÜ£¬²¢ÇÒ³öÏÖ¹ÊÕϵÄʱºò»Ö¸´Ïà¶Ô±È½ÏÀ§ÄÑ¡£
ѹËõ±íÕ¼ÓôÅÅÌ¿Õ¼äС£¬Ã¿¸ö¼Ç¼ÊDZ»µ¥¶ÀѹËõµÄ£¬ËùÒÔÖ»Óзdz£Ð¡µÄ·ÃÎÊ¿ªÖ§¡£
MySQLÖ§³ÖÍâ¼ü´æ´¢ÒýÇæÖ»ÓÐInnoDB£¬ÔÚ´´½¨Íâ¼üµÄʱºò£¬ÒªÇ󸽱í±ØÐëÓжÔÓ¦µÄË÷Òý£¬×Ó±íÔÚ´´½¨Íâ¼üµÄʱºòÒ²»á×Ô¶¯´´½¨¶ÔÓ¦µÄË÷Òý¡£
InnoDB´æ´¢·½Ê½ÎªÁ½ÖÖ£º1 ʹÓù²Ïí±í¿Õ¼ä´æ´¢ 2 ʹÓöà±í¿Õ¼ä
MEMORYÀàÐ͵Ĵ洢ÒýÇæÖ÷ÒªÓÃÓÚÄÇЩÄÚÈݱ仯²»Æµ·±µÄ´úÂë±í£¬»òÕß×÷Ϊͳ¼Æ²Ù×÷µÄÖмä½á¹û±í£¬±ãÓÚ¸ßЧµØ¶ÑÖмä½á¹û½øÐзÖÎö²¢µÃµ½×îÖÕµÄͳ¼Æ½á¹û¡£¶ÔMEMORY´æ´¢ÒýÇæµÄ±í½øÐиüвÙ×÷Òª½÷É÷£¬ÒòΪÊý¾Ý²¢Ã»ÓÐʵ¼ÊдÈëµ½´ÅÅÌÖУ¬ËùÒÔÒ»¶¨Òª¶ÔÏ´ÎÖØÐÂÆô¶¯·þÎñºóÈçºÎ»ñµÃÕâЩÐ޸ĺóµÄÊý¾ÝÓÐËù¿¼ÂÇ¡£
MERGEÓÃÓÚ½«Ò»ÏµÁеÈͬµÄMyISAM±íÒÔÂß¼·½Ê½×éºÏÔÚÒ»Æ𣬲¢×÷Ϊһ¸ö¶ÔÏóÒýÓÃËü¡£MERGE±íµÄÓŵãÔÚÓÚ¿ÉÒÔÍ»ÆƶԵ¥¸öMyISAM±í´óСµÄÏÞÖÆ£¬Í¨¹ý½«²»Í¬µÄ±í·Ö²¼ÔÚ¶à¸ö´ÅÅÌÉÏ£¬¿ÉÒÔÓÐЧµÄ¸ÄÉÆMERGE±íµÄ·ÃÎÊЧÂÊ¡£
Áíһƪ:-)
Õâ¶Îʱ¼äÔÚ¿´¡¶High
Ïà¹ØÎĵµ£º
¶¨ÆÚά»¤ÄãµÄÊý¾Ý±í¡£
¹¤¾ß£ºmysqlcheck myisamchk
mysqlcheck¿Í»§¶Ë¿ÉÒÔ¼ì²éºÍÐÞ¸´MyISAM±í¡£Ëü»¹¿ÉÒÔÓÅ»¯ºÍ·ÖÎö±í¡£
mysqlcheckµÄ¹¦ÄÜÀàËÆmyisamchk£¬µ«Æ乤×÷²»Í¬¡£
Ö÷Òª²î±ðÊǵ±mysqld·þÎñÆ÷ÔÚÔËÐÐʱ±ØÐëʹÓÃmysqlcheck£¬¶ømyisamch ......
ʹÓÃwhileÑ»·Óï¾äÉú³É²âÊÔÊý¾Ý£º
ÏÂÃæµÄ·½·¨ÊÇͨ¹ý´´½¨Ò»¸ö´æ´¢¹ý³Ì£¬È»ºóÔÙµ÷ÓÃÕâ¸ö´æ´¢¹ý³ÌÀ´ÊµÏֵģ¬´ÓÍøÉÏÕÒÁ˺ܶ෽·¨£¬µ«¶¼Ã»Óгɹ¦¡£
delimiter // /*¶¨ÒåÃüÁî½áÊø·ûĬÈÏΪ ; */
create procedure genUsers()
begin
declare i int default 0;
while i < 40 do
insert into users(userID,userName, ......
Linux + Apache2.0 + Mysql + PHP + phpBB3.0
1.°²°ü£º
Apache2.0
#tar -zxf httpd-***.tar.gz -C /usr/local/src/
#cd /usr/local/src/httpd-***
  ......
×î½üµÄÏîÄ¿ÖÐʹÓÃÁËMySQLÊý¾Ý¿â£¬Ò»Ð©MySQLµÄÐÂÓû§ÔÚÅäÖÃʹÓÃʱ»¹ÓÐЩ²»¹»ÊìÁ·£¬ÌØÔڴ˼Ǽ£¬·½±ã¿ª·¢ÍŶÓʹÓ㬸ÃÎÄÕÂËùÉæ¼°ÄÚÈݾù¿ÉÒÔÔÚMySQL²Î¿¼ÊÖ²áµÚ¶þÕ“°²×°MySQL”ÖÐÕÒµ½¡£MySQL°²×°ºó×Ô´øÁËÓ¢ÎIJο¼ÊֲᣬҲ¿ÉÒÔÔÚhttp://dev.mysql.com/doc/refman/5.1/zh/index.html²é¿´ÖÐÎÄ°æ±¾£ ......
±àÒëÁËÒ»¸öwindowsϵÄpython3Á¬½ÓMysqlµÄ¿â
mypysql
°æ±¾ÊÇ 0.5.1 £¬¸ù¾Ý¹Ù·½µÄÐÞ¸ÄÈÕÖ¾£¬Õâ¸ö°æ±¾ÐÞ¸ÄÁË0.5ÖÐÒ»¸öÄÚ´æй©ÎÊÌâ¡£
Ô´´úÂëºÍ±àÒëºóµÄÎļþΪ£º
http://211.147.215.55/down/mypysql-0.5.1-win.zip
mypysqlµÄ¹Ù·½µØÖ· https://sourceforge.net/projects/mypysql/
......