Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

¹ØÓÚMYSQLµ¥±í´æ´¢ÎÊÌâ

Êý¾Ý¿âÒýÇæʹÓÃMYISAM
ÀýÈç±íÃû£ºLOG¡¡Ã¿Ìì»á²úÉú400Íò×óÓҵļǼ

ÈÕ»ýÔÂÀÛÊý¾ÝÁ¿»á·Ç³£Ö®³è´ó

ËùÒÔ¿¼Âǵ½Õâµã
ÎÒÏëÁËÁ½¸ö·½°¸
1¡¢Ã¿Ìì²úÉúÒ»¸ö±í£¬ÀàËÆLOG20091010¡¢LOG20091011
2¡¢Ã¿Ì콫×òÌìµÄÊý¾Ý±¸·Ýµ½LOGBACKÏ£¬È»ºóɾ³ýLOG±íÖеÄ×òÌìµÄÊý¾Ý£¬Ò»ÖܶÔLOG±í×öOPTIMIZE

ÓÐÆäËû¸üºÃµÄ·½°¸Âð£¿
Ò»°ã»á²ÉÓÃÄãµÄµÚ¶þÖÖ·½°¸¼´¡£ Á½LOG±í  log_1day, log_history £¬µ«Èç¹ûÄãµÄ²éѯÈç¹û´ó¶àÊÇ»ùÓÚʱ¼äÀ´²éµÄ£¬ÔòÓ¦¸Ã½« log_history ÒÔÈÕÆÚÀ´½¨³É·ÖÇø±í¡£

logÈÕÖ¾ÓÈÆäÊÇBIN-LOG ÿ´Î·þÎñÆô¶¯¶¼»á²úÉúÒ»¸öÐеÄlogÈÕÖ¾ Ïñflush logs µÈ²Ù×÷Ò²ÓÐͬÑùµÄЧ¹û

ËùÒÔÈÕ»ýÊý¾ÝÁ¿»áºÝÅÓ´ó

ÎÒÃDzÉÈ¡µÄ´ëÊ©²»ÊÇÍ£Ö¹log ¶øÊǶ¨ÆÚɾ³ýlogÈÕÖ¾


Ïà¹ØÎÊ´ð£º

jsp±¸·ÝmysqlÖ»ÓпÕÎļþ

ÓÃjsp×ö¶«Î÷¸øÍêÈ«²»¶®mysqlµÄÈËÓ㬿ÉÊDZ¸·ÝʱֻÓпÕÎļþ£¬ÕâÊÇʲôÇé¿ö£¬
×îºÃÓÐÔ´´úÂ룬лл
Æäʵ±¸·ÝµÄ¹ý³ÌÎÒÏë´ó¸ÅÊÇÕâÑùµÄ£º
½«±íAÖеÄÊý¾Ý·Åµ½ArrayListÖУ¬È»ºó½«Õâ¸öArrayListÖеÄÊý¾ÝÔÙ´æµ½±íBÖС£ ......

100·ÖÇóÖú£¬¹ØÓÚJSPÏÂÌá½»ÖÐÎÄ×Ö·ûÈ¥MYSQLÂÒÂëÎÊÌâ¡£

jspÌá½»Ò³±àÂëÊÇUTF-8£¬MYSQL¿âÒ²ÊÇUTF-8,ΪʲôÌá½»ÁËÖÐÎÄ×Ö·ûÔÚÊý¾Ý¿âÀï±ä³ÉÂÒÂëÁËÄØ£¿

ÕâÖÖÎÊÌâÔõô½â¾ö£¿Ð»Ð»

ÁíÍ⣬JSPµ¯³ö¶Ô»°¿ò£¨±ÈÈ絯³ö¡°XXXÉóºËͨ¹ý¡±ÏÂÃæ¸úÈ·¶¨°´Å¥£©ºÍ·µ»ØÉÏÒ»Ò³ÒÔ¼°×ªµ ......

MYSQLÖÐÒÑ´æÔÚÓû§±ä¸üȨÏÞ

ÎÒÔÚ°²×°ÂÛ̳µÄʱºò£¬Ð½¨ÁËÒ»¸öMYSQLÓû§£¬È¨ÏÞÊÇALL£¨grant all ¡­¡­£©£¬ÏÖÔÚÂÛ̳°²×°ºÃÁË£¬ÎÒÏëÈÃÕâ¸öÓû§Ö»ÄܲÙ×÷Ìض¨Êý¾Ý¿â£¨·ÃÎʺÍÐ޸ģ¬°üÀ¨´´½¨É¾³ý±í£¬×îºÃ²»ÄÜɾ³ýÊý¾Ý¿â£¬µ«×ö²»µ½¾ÍËãÁË£©£¬ÀýÈçtestÊý¾Ý ......

MySQL±àÂëµÄÎÊÌâ

ÎÒµÄMySQL±àÂ룬ÎÒÔÚmy.iniÖÐÉèÖõÄΪutf8,ÔÚ´´½¨Êý¾Ý¿âʱѡÔñµÄ±àÂëΪutf8_Unicode_ci£¬ÎÒÔÚ¡¢´ÓÒ³Ãæ²åÈëÊý¾Ý¿â£¬ÔÚÒ³ÃæÉÏÏÔʾÕý³££¬µ«´ÓphpmyadminÖУ¬²é¿´Ê±£¬ÏÔʾΪÂÒÂ루ÎÒÎÒ¡£& ......

C#¶ÁÈ¡mysqlÊý¾Ý¿âÎÊÌâ

ÎÒʹÓÃC#Á¬½ÓmysqlÊý¾Ý¿â¶ÁÈ¡ÆäÖеÄÊý¾Ý£¬
¶ÁÈ¡Êý¾Ý±íÖеÄVarcharÀàÐ͵ÄÊý¾Ý£¬Èç¹ûÊÇÓ¢ÎÄÄܹ»Õý³£¶ÁÈ¡³öÀ´£¬
¶øÈç¹ûÊÇÖÐÎÄ£¬¾Í»áÏÔʾΪ¡°£¿£¿¡±£¬

Èç¹û°ÑvarcharÀàÐÍ»»³ÉbinaryÀàÐÍ£¬Asp.net³ÌÐòÄܹ»Õý ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ