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

Windowsƽ̨¶àMYSQLÅäÖÃ(¶àMy.ini)

    ×î½üÔÚѧϰSSH£¬ÓÉÓÚΪÁ˽ÚÔ¼Äڴ棬ËùÒÔ¾Í×¼±¸Ê¹ÓÃMYSQL´úÌæOracle£¬ÎªÁ˸üÉîÒ»²½µØÁ˽âMySQL£¬ÓÚÊǾͼƻ®°²×°noinstall°æ±¾£¬Õâ°æ±¾±È°²×°°æ¿ÉÂ鷳һЩ£¬ÌرðÊÇÅäÖ÷½Ã棬Èç¹ûÅäÖúõĻ°¾Í¿ÉÒÔÔÚһ̨»úÆ÷ÉÏÔËÐжà¸ö°æ±¾µÄMYSQL£¬ÔÚÍøÉÏÕÒÁËÇ°±²ÃǵıʼǺóѧϰÍê±ÏºóÔټǼһ±Ê£¬¾ÍÎÒÕâ¼ÇÐÔ£¬¹À¼ÆÃ÷¶ùÔçÉϾÍÈ«Íü¹âÁË¡£
    Ò»¸öƽ̨²¿Êð¶à¸öµÄÇé¿öÏÂ×î»ù±¾µÄ¾ÍÊÇÒª¸øÿ¸öƽָ̨¶¨²»Í¬µÄ my.ini Îļþ£¬µ±È»£¬ÔÚ ini ÎļþÖеÄÊý¾Ý¿âµÄ¶Ë¿ÚºÅÒ²»áÓв»Í¬£¬my.ini ÎļþµÄÄÚÈݾͰ´ÕÕ¸÷¸ö°æ±¾µÄ»ù±¾ÅäÖþͿÉÒÔ£¬²»ÐÐËæ±ãÕÒÒ»¸ö¸´ÖƹýÀ´¸Ä¸Ä¾ÍOKÁË£¬Ö÷ÒªÒªÐ޸ĵĵط½ÓÐÕâô¼¸¸ö£º1¡¢basedir = ¡ºµ±È»Òª×¢²áµÄ±¾°æµÄ¸ùĿ¼¡»2¡¢datadir = ¡ºÊý¾ÝĿ¼(dataÎļþ¼ÐλÖÃ)¡»3¡¢port = ¡º¶Ë¿ÚºÅ¡»¶à¸ö±ðÖظ´¾ÍÐÐÁË¡£Ö÷Òª¾ÍÊÇÕâ3¸öÖµµÄµØÖ·£¬ÒªÖ¸ÏòÄ㵱ǰÅäÖõÄmysql£¬µ±È»ÆäËûµÄÊôÐÔÒ²Ò»Ñù¡£
   
    È»ºó¾ÍÊÇ°²×°³É·þÎñ£¬Èç¹û²»°²×°³É·þÎñ£¬Ã¿´Î¶¼×Ô¼ºÆô¶¯Ò²Ò»Ñù£¬¼Óµã²ÎÊý¾Í¿ÉÒÔÁË¡£
    ²»°²×°³É·þÎñµÄÆô¶¯·½Ê½ÊÇ£ºbin>mysqld-nt --defaults-file="D:\xxx\old\mysql\my.ini" ÕâÑùÆô¶¯¾ÍÊÇÓÃÖ¸¶¨µÄini È¥Æô¶¯nt·þÎñ¡£
    °²×°³É·þÎñ£º     °²×°·þÎñÏà¶Ô¼òµ¥£¬X:\XXX\bin>mysqld-nt --install MySQLXXX --defaults-file="X:\XXX\my.ini"Ö»ÒªÔÚbinĿ¼ÏÂÔÚCMDÖÐʹÓà --installÃüÁָ¶¨·þÎñÃû³Æ£¬È»ºó×Ô¶¨Ä¬ÈϵÄiniÎļþÃû¼´¿É¡£     ³õʼ»¯Êý¾Ý¿â£º     ÔÚ·Ç°²×°°æÖÐÐèҪʹÓà mysqld-nt --console ³õʼ»¯Êý¾Ý¿â£¬ÔÚ¶àMYSQLÖУ¬°²×°µÚ¶þ¸öMYSQLʱҲÐèÒªÖ¸¶¨Ä¬ÈϵÄiniλÖã¬ÃüÁîΪX:\XXX\bin>mysqld-nt --defaults-file="X:\XXX\my.ini" --console ÕâÑù¾Í¿ÉÒÔÍê³É³õʼ»¯ÁË£¬ÆäËûµÄ²Ù×÷¶¼»ù±¾Ò»ÑùÁË¡£
ÔÚ¿ØÖÆ̨ÖÐÆô¶¯mysqlʱÐèÒª¼ÓÉϲÎÊý--port=#Ö®ÃûÐèÒªÖ¸¶¨µÄ¶Ë¿ÚºÅ ¡£


Ïà¹ØÎĵµ£º

Ê×ÓÃMYSQLË÷ÒýµÄ¿ì¸Ð

ÓÃÁËMYSQLÒ»Äê¶à£¬ÇÒÒ»Ö±±»MYSQLµÄ¿ìËÙ²éѯËùÎüÒý£¬¿É½ñÌìÔõôÅöʯͷÁË£¿
1Dp4V*W+t0
3p)o{3s.a'^Qr0
Ô­À´¾ÍÊÇË÷ÒýÔÚ×ö¹Ö¡£ÓÉÓÚ±¾ÈËÊÇÒµÓà°®ºÃ×ÔѧPHP+MYSQL¿ª·¢£¬ËùÒÔÔÚÀíÂÛÓÅ»¯·½ÃæÒ»°ã¿¼ÂÇÉõÉÙ£¬»ù±¾²»ÓÃ×Ö¶ÎË÷ÒýÈ¥×öMYSQLÓÅ»¯£¬¿ÉÄÜÒ²ÊÇÎÒ²»»áÓðɡ££¨×Ü¿´ÊéÉÏ˵Ë÷ÒýµÄºÃ´¦ºÃ´¦µÄ£¬½ñÌì×Åʵ³¢µ½ÌðÍ·ÁË¡££©PHPChi ......

mysql¼Ü¹¹·½°¸

Scale Out£ººáÏòÀ©Õ¹£¬Ôö¼Ó´¦Àí½ÚµãÌá¸ßÕûÌå´¦ÀíÄÜÁ¦
Scale Up£º×ÝÏòÀ©Õ¹£¬Í¨¹ýÌáÉýµ¥¸ö½ÚµãµÄ´¦ÀíÄÜÁ¦´ïµ½ÌáÉýÕûÌå´¦ÀíÄÜÁ¦µÄÄ¿µÄ
Replication
MySQLµÄreplicationÊÇÒì²½µÄ£¬ÊÊÓÃÓÚ¶ÔÊý¾ÝʵʱÐÔÒªÇó²»ÊÇÌرð¹Ø¼üµÄ³¡¾°¡£slave¶ËµÄIOÏ̸߳ºÔð´Ómaster¶ÁÈ¡ÈÕÖ¾£¬SQLÏß ³ÌרߺÔðÔÚslave¶ËÓ¦ÓôÓmaster¶Á¹ýÀ´µÄÈÕÖ¾£¨ÔçÆÚ ......

mysqlÖ®ÄÚ´æ±í

 ÈçºÎ´´½¨ÄÚ´æ±í
£¿
    ´´½¨ÄÚ´æ±í·Ç³£µÄ¼òµ¥£¬Ö»Ðè×¢Ã÷ ENGINE=
MEMORY ¼´¿É:
    CREATE TABLE  `tablename` ( `columnName` varchar(256) NOT NUL)
ENGINE=MEMORY DEFAULT CHARSET=utf8 MAX_ROWS=100000000;
×¢Òâ
£º
   
µ±ÄÚ´æ±íÖеÄÊý¾Ý´óÓÚmax_ ......

mysqlÓÅ»¯£¨Ðø£©

     ÔÚ¶Ômysql½øÐе÷ÊÔµÄʱºò£¬ÓÉÓÚmysql´æÔÚquery»º´æ£¬³£³£²»ÄÜ·´Ó³ÕæʵÇé¿ö¡£
ÓÐʱºò£¬ÓÐûÓÐʹÓÃFLUSH
QUERY
CACHEµÄȨÏÞ£»
ÔÚ query_cache_type ´ò¿ªµÄÇé¿öÏ£¬Èç¹ûÄã²»ÏëʹÓûº´æ£¬ÐèÒªÖ¸Ã÷
select sql_no_cache id,name from tableName;
»òÕß»¹Óиü¼òµ¥µÄ°ì·¨£¬ÐÞ¸ÄÒ»ÏÂsqlÀïij¸ö×Öĸµ ......

MySQL Êý¾Ý¿â InnoDBÒýÇæµÄ²åÖµÎÊÌâ

InnoDBÊÇmysqlÊý¾Ý¿âÖÐΨһһ¸öÖ§³ÖÍâ¼üµÄÒýÇ棬µ«ÊDzîÖµµÄʱºòÈ´µÃ×¢ÒâÒ»ÏÂ
±ÈÈçÓÐÁ½ÕÅ±í£¬album(id,name,path) £¬picture(id,name,path,parent_album)£¬ÆäÖбí2ÖÐparent_albumÊÇÍâ¼ü
´Ëʱ²îÖµinsert into picture (name,path,parent_album) values ("pic","path",68) (68ÊÇÒ»¸öÏà²áµÄid)
mysql»á±¨´í"Failed to read a ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ