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=#Ö®ÃûÐèÒªÖ¸¶¨µÄ¶Ë¿ÚºÅ ¡£
Ïà¹ØÎĵµ£º
Scale Out£ººáÏòÀ©Õ¹£¬Ôö¼Ó´¦Àí½ÚµãÌá¸ßÕûÌå´¦ÀíÄÜÁ¦
Scale Up£º×ÝÏòÀ©Õ¹£¬Í¨¹ýÌáÉýµ¥¸ö½ÚµãµÄ´¦ÀíÄÜÁ¦´ïµ½ÌáÉýÕûÌå´¦ÀíÄÜÁ¦µÄÄ¿µÄ
Replication
MySQLµÄreplicationÊÇÒì²½µÄ£¬ÊÊÓÃÓÚ¶ÔÊý¾ÝʵʱÐÔÒªÇó²»ÊÇÌرð¹Ø¼üµÄ³¡¾°¡£slave¶ËµÄIOÏ̸߳ºÔð´Ómaster¶ÁÈ¡ÈÕÖ¾£¬SQLÏß ³ÌרߺÔðÔÚslave¶ËÓ¦ÓôÓmaster¶Á¹ýÀ´µÄÈÕÖ¾£¨ÔçÆÚ ......
L1¡¢HTML¾²Ì¬»¯
Æäʵ´ó¼Ò¶¼ÖªµÀ£¬Ð§ÂÊ×î¸ß¡¢ÏûºÄ×îСµÄ¾ÍÊÇ´¿¾²Ì¬»¯µÄhtmlÒ³Ã棬ËùÒÔÎÒÃǾ¡¿ÉÄÜʹÎÒÃǵÄÍøÕ¾ÉϵÄÒ³Ãæ²É Óþ²Ì¬Ò³ÃæÀ´ÊµÏÖ£¬Õâ¸ö×î¼òµ¥µÄ·½·¨ÆäʵҲÊÇ×îÓÐЧµÄ·½·¨¡£µ«ÊǶÔÓÚ´óÁ¿ÄÚÈݲ¢ÇÒƵ·±¸üеÄÍøÕ¾£¬ÎÒÃÇÎÞ·¨È«²¿ÊÖ¶¯È¥°¤¸öʵÏÖ£¬ÓÚÊdzöÏÖÁËÎÒÃdz£¼ûµÄÐÅÏ¢ ·¢²¼ÏµÍ³CMS£¬ÏñÎÒÃdz£·ÃÎʵĸ÷¸öÃÅ»§Õ¾µãµÄÐ ......
linux:
Èç¹û MySQL ÕýÔÚÔËÐУ¬Ê×ÏÈɱ֮£º killall -TERM mysqld¡£
Æô¶¯ MySQL £º/usr/bin/safe_mysqld --skip-grant-tables &
¾Í¿ÉÒÔ²»ÐèÒªÃÜÂë¾Í½øÈë MySQL ÁË¡£
È»ºó¾ÍÊÇ
>use mysql
>update user set password=password("new_pass") where user="root";
>flush privileges;
ÖØÐÂɱ MySQL £¬ ......
ͨ¹ý·ÖÇø£¨Partition£©ÌáÉýMySQLÐÔÄÜ
×÷Õߣºfoxcai À´Ô´:foxcai µÄ Blog (2006-05-08 14:30:34)
ͨ¹ý·ÖÇø£¨Partition£©ÌáÉýMySQLÐÔÄÜ
——MySQL5.1ÐÂÌØÐÔ·ÒëϵÁÐ
¼¸ÄêÇ°£¬°³Ð´¹ýһƪÌâΪ“The Founda ......
Unix&Linux£º
1.ÓÃroot»òÕßÔËÐÐmysqldµÄÓû§µÇ¼ϵͳ£»
2£®ÀûÓÃkillÃüÁî½áÊøµômysqldµÄ½ø³Ì£»
3£®Ê¹ÓÃ--skip-grant-tables²ÎÊýÆô¶¯MySQL Server
shell>mysqld_safe --skip-grant-tables &
4.Ϊroot@localhostÉèÖÃÐÂÃÜÂë
shell>mysqladmin -u root flush-privileges password "newpassword" ......