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

MySQLÊý¾ÝÀàÐÍÓ뽨¿â²ßÂÔµÄÏêϸ½âÎö

´ËÎÄÕÂÖ÷ÒªÃèÊöµÄÊÇMySQLÊý¾ÝÀàÐÍÓ뽨¿â²ßÂÔµÄÏêϸ½âÎö£¬ÎÒÃÇ´ó¼Ò¶¼ÖªµÀÎÞÂÛÊÇÔÚ²»ÊշѵÄÊý¾Ý¿â¿Õ¼ä»òÕßÊÇ´óÐ͵ĵç×ÓÉÌÎñÍøÕ¾£¬ÆäºÏÀíµÄÉè¼Æ±í½á¹¹¡¢³ä·ÖÀûÓÿռäÊÇÊ®·Ö±ØÒªµÄ¡£
¡¡¡¡Õâ¾ÍÒªÇóÎÒÃǶÔÊý¾Ý¿âϵͳµÄ³£ÓÃMySQLÊý¾ÝÀàÐÍÓгä·ÖµÄÈÏʶ¡£ÏÂÃæÎҾͽ«ÎÒµÄÒ»µãÐĵÃд³öÀ´¸ú´ó¼Ò·ÖÏí¡£
¡¡¡¡Ò»¡¢MySQLÊý¾ÝÀàÐÍÖ®Êý×ÖÀàÐÍ
¡¡¡¡Êý×ÖÀàÐͰ´ÕÕÎҵķÖÀà·½·¨·ÖΪÈýÀࣺÕûÊýÀࡢСÊýÀàºÍÊý×ÖÀà¡£
¡¡¡¡ÎÒËùνµÄ“Êý×ÖÀà”£¬¾ÍÊÇÖ¸DECIMALºÍNUMERIC£¬ËüÃÇÊÇͬһÖÖÀàÐÍ¡£ËüÑϸñµÄ˵²»ÊÇÒ»ÖÖÊý×ÖÀàÐÍ£¬ÒòΪËûÃÇʵ¼ÊÉÏÊǽ«Êý×ÖÒÔ×Ö·û´®ÐÎʽ±£´æµÄ;ËûµÄÖµµÄÿһλ(°üÀ¨Ð¡Êýµã)Õ¼Ò»¸ö×ֽڵĴ洢¿Õ¼ä£¬Òò´ËÕâÖÖÀàÐͺķѿռä±È½Ï´ó¡£µ«ÊÇËüµÄÒ»¸öÍ»³öµÄÓŵãÊÇСÊýµÄλÊý¹Ì¶¨£¬ÔÚÔËËãÖв»»á“Ê§Õæ”£¬ËùÒԱȽÏÊʺÏÓÃÓÚ“¼Û¸ñ”¡¢“½ð¶î”ÕâÑù¶Ô¾«¶ÈÒªÇ󲻸ߵ«×¼È·¶ÈÒªÇó·Ç³£¸ßµÄ×ֶΡ£
¡¡¡¡Ð¡ÊýÀ࣬¼´¸¡µãÊýÀàÐÍ£¬¸ù¾Ý¾«¶ÈµÄ²»Í¬£¬ÓÐFLOATºÍDOUBLEÁ½ÖÖ¡£ËüÃǵÄÓÅÊÆÊǾ«È·¶È£¬FLOAT¿ÉÒÔ±íʾ¾ø¶ÔÖµ·Ç³£Ð¡¡¢Ð¡µ½Ô¼1.17E-38(0.000...0117£¬Ð¡ÊýµãºóÃæÓÐ37¸öÁã)µÄСÊý£¬¶øDOUBLE¸üÊÇ¿ÉÒÔ±íʾ¾ø¶ÔֵСµ½Ô¼2.22E-308(0.000...0222£¬Ð¡ÊýµãºóÃæÓÐ307¸öÁã)µÄСÊý¡£FLOATÀàÐͺÍDOUBLEÀàÐÍÕ¼Óô洢¿Õ¼ä·Ö±ðÊÇ4×Ö½ÚºÍ8×Ö½Ú¡£
¡¡¡¡Èç¹ûÐèÒªÓõ½Ð¡ÊýµÄ×ֶΣ¬¾«¶ÈÒªÇ󲻸ߵ쬵±È»ÓÃFLOATÁË¡£¿ÉÊÇ˵¾äʵÔÚ»°£¬ÎÒÃÇ“ÃñÓÔµÄÊý¾Ý£¬ÄÄÓÐÒªÇ󾫶ÈÄÇô¸ßµÄÄØ?ÕâÁ½ÖÖÀàÐÍÖÁ½ñÎÒûÓÐÓùý¨D¨DÎÒ»¹Ã»ÓÐÓöµ½ÊʺÏÓÚʹÓÃËüÃǵÄÊÂÀý¡£
¡¡¡¡ÓõÄ×î¶àµÄ£¬×îÖµµÃ¾«´òϸËãµÄ£¬ÊÇÕûÊýÀàÐÍ¡£´ÓÖ»Õ¼Ò»¸ö×Ö½Ú´æ´¢¿Õ¼äµÄTINYINTµ½Õ¼8¸ö×Ö½ÚµÄBIGINT£¬Ìôѡһ¸ö“¹»ÓÔ²¢ÇÒÕ¼Óô洢¿Õ¼ä×îСµÄÀàÐÍÊÇÉè¼ÆÊý¾Ý¿âʱӦ¸Ã¿¼Âǵġ£TINYINT¡¢SMALLINT¡¢MEDIUMINT¡¢INTºÍBIGINTÕ¼Óô洢¿Õ¼ä·Ö±ðΪ1×Ö½Ú¡¢2×Ö½Ú¡¢3×Ö½Ú¡¢4×Ö½ÚºÍ8×Ö½Ú£¬¾ÍÎÞ·ûºÅµÄÕûÊý¶øÑÔ£¬ÕâЩÀàÐÍÄܱíʾµÄ×î´óÕûÊý·Ö±ðΪ255¡¢65535¡¢16777215¡¢4294967295ºÍ18446744073709551615¡£
¡¡¡¡Èç¹ûÓÃÀ´±£´æÓû§µÄÄêÁä(¾ÙÀýÀ´Ëµ£¬Êý¾Ý¿âÖб£´æÄêÁäÊDz»¿ÉÈ¡µÄ)£¬ÓÃTINYINT¾Í¹»ÁË;¾Å³ÇµÄ¡¶×ݺᡷÀ¸÷Ïî¼¼ÄÜÖµ£¬ÓÃSMALLINTÒ²¹»ÁË;Èç¹ûÒªÓÃ×÷Ò»¸ö¿Ï¶¨²»»á³¬¹ý16000000ÐеıíµÄAUTO_INCREMENTµÄIDENTIFY×ֶΣ¬µ±È»ÓÃMEDIUMINT²»ÓÃINT£¬ÊÔÏ룬ÿÐнÚÔ¼Ò»¸ö×Ö½Ú£¬16000000ÐпÉÒÔ½ÚÔ¼10Õ×¶àÄØ!
¡¡¡¡¶þ¡¢ÈÕÆÚʱ¼äÀàÐÍ
¡¡¡¡ÈÕÆÚºÍʱ¼äÀàÐͱȽϼòµ¥£¬ÎÞ·ÇÊÇDATE¡¢TIME¡¢DATETIME¡¢TIMESTAMP


Ïà¹ØÎĵµ£º

MySQLÊý¾Ý±íÀàÐÍ(ij¹«Ë¾µÄÃæÊÔÌâ)

MySQLµÄÊý¾Ý±íÀàÐͺܶ࣬MySQLÒ»¹²ÏòÓû§ÌṩÁ˰üÀ¨DBD¡¢HEAP¡¢ISAM¡¢MERGE¡¢MyIAS¡¢InnoDBÒÔ¼°GemeniÕâ7ÖÖ±í¡£ÆäÖÐDBD¡¢InnoDBÊôÓÚÊÂÎñ°²È«Àà±í£¬¶øÆäËûÊôÓÚÊÂÎñ·Ç°²È«Àà±í¡£
DBD
Berkeley DB(DBD)±íÊÇÖ§³ÖÊÂÎñ´¦ÀíµÄ±í£¬ÓÉSleepycatÈí¼þ¹«Ë¾¿ª·¢¡£ËüÌṩMySQLÓû§ÆÚ´ýÒѾõŦÄÜ--ÊÂÎñ¿ØÖÆ¡£ÊÂÎñ¿ØÖÆÔÚÈκÎÊý¾Ý¿âϵͳÖÐ ......

phpmyadminÁ¬½Ó¶à¸öMySQLÊý¾Ý¿â


ÔÚphpmyadminµÄ¸ùĿ¼Ï½¨Á¢config.inc.php
дÈëÈçÏ´úÂ룺
<?php
//phpmyadmin ÅäÖÃÎļþ
//±¾µØMySQLÊý¾Ý¿â
$i=1;
$cfg['Servers'][$i]['host']          =
'localhost';
$cfg['Servers'][$i]['user']          ......

²úÆ· °²×°ÖÐµÄ MySql ÂÌ»¯½Ì³Ì

    ×î½üÊÕµ½·´À¡£¬ºÜ¶à¿Í»§Á¬MySql¶¼ÎÞ·¨ÕýÈ·°²×°¡£ÊÕµ½ÈÎÎñ£¬Òª½«MySql´òµ½²úÆ·ÖУ¬ºÍ²úÆ·Ò»Æð°²×°ºÍÐ¶ÔØ£¬À­¿ª¼Ü
ʽ¸É°É£¬Ã»·¨×Ó¡£
    Ñо¿Ò»Õ󣬷¢ÏÖ½«°²×°ºÃµÄMySqlÎļþ¼ÐCopyµ½ÆäËüµçÄÔÉÏ£¬ÔÙ½â¾öºÃÁ½¸öÎÊÌâÓ¦¸Ã¾Í¿ÉÒԺͰ²×°°æÒ»ÑùÕý³£Ê¹Óá£
1.Copyµ½ÁËÆäËüµçÄÔÉϵIJ»Í¬Ä¿Â¼£¬Ó¦¸ ......

mysql procedure ·µ»Ø½á¹û¼¯

mysql procedure ûÓÐreturn²ÎÊý ¿ÉÒÔoutÒ»¸ö±äÁ¿¸ø¿Í»§¶Ë µ«ÊÇout²ÎÊýÓÖ²»Ö§³ÖÓαêÀàÐÍ£¬ÈçºÎÄÜout³öÒ»¸ö½á¹û¼¯ÄØ£¿
·½·¨ºÜ¼òµ¥ ¾ÍÊÇÔÚprocedureÀïÖ´ÐÐÒ»¸öselect £¨select ....  from ...£©
eg.
CREATE PROCEDURE `CREATE_ACCOUNT`(
ACCOUNT CHAR(32),
PASSWORD CHAR(32), ......

MySQLС¼¼ÇÉ 1

1,Íü¼ÇrootÃÜÂë,Èç¹ûÄÜ»¹ÄܽøÈëmysqlÇÒ»¹ÓÐmysql¿âµÄȨÏÞ,ÄÇô¾ÍÖ±½ÓÖ´ÐÐ update user set password=password(¡®XXX¡¯) where user=¡¯root¡¯ and host=¡¯XX¡¯; flush privileges; ¼´¿É.Èç¹û²»ÄܽøÈëmysql,ÐèÒªÓÐmysqlÆô¶¯µÄȨÏÞ,ÔÚÆô¶¯mysqlµÄʱºò¼ÓÉÏ--skip-grant-tablesÑ¡Ïî,´Ëʱ½øÈëmysqlÎÞÐèÃÜÂë,ÔÙÖØ¸´ÉÏÊö²Ù ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ