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

MySQL¼òµ¥Replication¼¯ÈºÏµÍ³´î½¨

   ×î½ü·¢ÏÖ¹«Ë¾µÄ·þÎñÆ÷ºÜ²»°²È«,µÚÒ»ÓÉÓÚÊÇÊý¾ÝÖÐת,ºÜ½²¾¿Ê±Ð§ÐÔ,Ò²¾ÍÊÇÉÏÎçµÄ±¸·Ý¶ÔÏÂÎçÀ´ËµÒ»µãÒâÒ嶼ûÓÐ.µÚ¶þÖ»ÓÐ1̨·þÎñÆ÷,ÎÒʼÖÕÈÏΪһ̨·þÎñÆ÷ÊǾø¶Ô²»¹»°²È«µÄ,±ÈÈçÿ̨·þÎñÆ÷³öÏÖ¹ÊÕϵĸÅÂÊÊÇǧ·ÖÖ®Ò»,ÄÇô2̨ͬʱ³öÏÖ¹ÊÕϵĸÅÂÊ´óÔ¼Ö»ÓаÙÍò·ÖÖ®Ò»!ÓÚÊÇ,ÔÚÎÒµÄÇ¿ÁÒÒªÇóÏ´ӹ«Ë¾ÓÖ·ÖµÃһ̨·þÎñÆ÷,intelÖÁÇ¿4ºË4gÄÚ´æ,500gÓ²ÅÌ,¿´ÆðÀ´ÔÚPCServerÀïÓ¦¸Ã»¹²»´í,ºÇºÇ Ö®ËùÒÔÑ¡Ôñmysql replication²»Ñ¡Ôñmysql clusterµÚÒ»·þÎñÆ÷ÊýÁ¿ÓÐÏÞ,µÚ¶þ,Òª½â¾öµÄÎÊÌâ½ö½öÊDZ¸·ÝÎÊÌâ. ReplicationÊÇÒ»¸öÒì²½¸´Öƹý³Ì,¹²ÓÐ3¸öÏß³Ì,ÆäÖÐ2¸ö(1¸ösqlºÍ1¸öio)ÔÚslave¶Ë,šһ¸öioÏß³ÌÏëmaster¶Ë,ʵÏÖreplication±ØÐëÏÈ´ò¿ªmaster¶ËµÄbinary log¼´¶þ½øÖÆÈÕÖ¾.¸´Öƹý³Ìʵ¼Ê¾ÍÊÇslave´Ómaster»ñÈ¡¶þ½øÖÆÈÕÖ¾,È»ºó°´ÕÕÈÕÖ¾ÖеÄ˳ÐòÒ»´ÎÖ´ÐÐ.   ½ÓÏÂÀ´¿ªÊ¼´î½¨ÎÒµÄreplication¸´ÖÆÏµÍ³ºÜ¼òµ¥µÄmaster-slaveϵͳ,´óÖÂÓÐ4²½,1),°²×°ÏµÍ³,Ö÷·þÎñÆ÷ÉÏÖ÷×¼±¸¹¤.2)Ö÷·þÎñÆ÷±¸·ÝÊý¾Ý,3)´Ó·þÎñÆ÷°²×°±¸·ÝÊý¾Ý,4)´Ó·þÎñÆ÷ÅäÖÃ. Ê×ÏȽ«Á½Ì¨·þÎñÆ÷¶¼Éý¼¶µ½×îеÄ5.1.40,Ñ¡Ôñ×îаæ,»¹ÊÇ»ùÓÚ°²È«¿¼ÂǵÄ,±àÒëÈçÏÂ,ºÜ¼òµ¥µÄÅäÖÃ: ./configure --prefix=/home/mysql  \
--without-debug \
--enable-thread-safe-client \
--enable-assembler \
--enable-profiling \
--with-mysqld-ldflags=-all-static \
--with-client-ldflags=-all-static \
--with-charset=latin1 \
--with-extra-charsets=utf8,gbk \
--with-plugins=partition,csv,federated,heap,innobase,myisammrg,myisam,ndbcluster \
--with-mysqld-user=mysql \
--without-embedded-server \
--with-server-suffix=-xiao7ng \
--with-unix-socket-path=/home/mysql/sock/mysql.sock ·þÎñÆ÷¹ûÈ»²»´í,1¸öСʱ¾Í±àÒë°²×°Íê³É,ËÙ¶ÈÓе㾪ÈË,ºÇºÇ ÔÚÖ÷·þÎñÆ÷Éϱ¸·ÝÊý¾ÝÓкܶà,¾ßÌå°Ù¶È,ÕâÀï½²Á½¸ö¼òµ¥µÄ,µÚÒ»À䱸·Ý,¹Øµômysql·þÎñ,È˺󿽱´Êý¾ÝÎļþ,µÚ¶þÈȱ¸·Ý. µÚÒ»ÖÖÏÈÒª¿´ÏÂÖ÷·þÎñÆ÷µÄµ±Ç°ÈÕÖ¾ÃûºÍÆ«ÒÆÁ¿,È»ºóûɶ˵µÄÃüÁîÈçÏÂ: mysql>flush tables with read lock; mysql>show master status; +------------------+----------+--------------+------------------+
| File             


Ïà¹ØÎĵµ£º

MySQLѧϰ

×öÈí¼þÊý¾Ý¿â±Ø²»¿ÉÉÙ£¬ÎÒÑ¡ÔñÁËMySQL¡£
Ê×Ïȵ½http://dev.mysql.com/downloads/ÏÂÔØºÃMySQL5.1ºÍMySQL GUI TOOLS
ϵ½µçÄÔÉÏ,È»ºó°²×°£¬ÏÈ×°5.1ÔÙ×°gui tools ,һ·ȷ¶¨°É¡£
ŪºÃºó£¬µã¿ªMySQL Query Browser£¬¾Í¿ÉÒÔ²Ù×÷Êý¾Ý¿âÁË¡£
MySQLµÄÇý¶¯³ÌÐòÊÇGUITOOLS°²×°Ä¿Â¼/java/libϵÄmysql-connector-java-5.0.4-bin.ja ......

jira+tomcat+mysqlµÄ¼¯³É

ÒÔǰû½Ó´¥¹ýÕâ¸ö¶«¶«£¬Ç°ÌìÒ»¸öͬÊÂÈÃÎÒ°²×°ÏÂjira+confluence£¬µ«ÊÇconfluenceŪÁ˺ó¤Ê±¼äҲû¼¯³É³É¹¦£¡ÏÖÔÚ°ÑÉÏÊöÈýÕߵɹý³Ì×ܽáÏ£¡
°²×°»·¾³£º
ϵͳ£ºxp sp2 
jdk:  1.6
tomcat: 5.5 °²×°°æ   (¿ÉÒÔÓýâѹ°æµÄ)
MySql: 5.0.x
ËùÐèÈí¼þ£º
jiar£º atlassian-jira-enterprise-3.9.3.zi ......

mysql´íÎó¼°½â¾öÈ«¹¥ÂÔ

10055:ûÓлº´æ¿Õ¼ä¿ÉÀûÓà  ·½·¨:²é¿´ÏÂÄãµÄCÅ̿ռäÊÇ·ñÒѾ­Âú,Çå³ýһЩûÓÐÓõÄÎļþ.   ¿ÉÒÔÔÚºǫ́µÄ"ÂÛ̳ºËÐÄÉèÖÃ","ºËÐŦÄÜÉèÖÃ"Àï"½ø³ÌÓÅ»¯"¿ªÆô,"GZIP ѹËõÊä³ö"¹Ø±Õ. ²éÕÒÁËÒ»ÏÂ10055£¨Ã»Óлº´æ
˵Ã÷:Èç¹ûÓöµ½Êý¾Ý¿â³ö´íµÄÎÊÌâÐÞ¸ÄÏàÓ¦µÄ´úÂëºóÒ»°ãÒªÖØÆômysql¡£Èç¹ûÓöµ½mysqlµÄÎÊÌâ¿ÉÒÔÏÈÖØÆ ......

ÈçºÎÌá¸ßMySQLÐÔÄÜ

Ò»¡¢ÎÊÌâµÄÌá³ö
¡¡¡¡ÔÚÓ¦ÓÃϵͳ¿ª·¢³õÆÚ£¬ÓÉÓÚ¿ª·¢Êý¾Ý¿âÊý¾Ý±È½ÏÉÙ£¬¶ÔÓÚ²éѯSQLÓï¾ä£¬¸´ÔÓÊÓͼµÄµÄ±àдµÈÌå»á²»³öSQLÓï¾ä¸÷ÖÖд·¨µÄÐÔÄÜ¡£ÓÅÁÓ£¬µ«ÊÇÈç¹û½«Ó¦ÓÃϵͳÌύʵ¼ÊÓ¦Óúó£¬Ëæ×ÅÊý¾Ý¿âÖÐÊý¾ÝµÄÔö¼Ó£¬ÏµÍ³µÄÏìÓ¦ËٶȾͳÉΪĿǰϵͳÐèÒª½â¾öµÄ×îÖ÷ÒªµÄÎÊÌâÖ®Ò»¡£ÏµÍ³ÓÅ»¯ÖÐÒ»¸öºÜÖØÒªµÄ·½Ãæ¾ÍÊÇSQLÓï¾äµÄÓÅ»¯¡£¶ÔÓ ......

MySQL ALTERÓï·¨

 
ALTER [IGNORE] TABLE tbl_name alter_spec [, alter_spec ...]
alter_specification:
ADD [COLUMN] create_definition [FIRST | AFTER column_name ]
or ADD INDEX [index_name] (index_col_name,...)
or ADD PRIMARY KEY (index_col_name,...)
or ADD UNIQUE [index_name] (index_col_name,...)
or ALTER [ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ