¶à¸öMySql·þÎñÆ÷Êý¾Ý¿âͬ²½µÄÅäÖÃÓï¾ä
ÔÚÎÒÃÇʹÓÃMySqlÊý¾Ý¿âʱ£¬ÓÐʱ»áÐèÒª½øÐжà¸öMySql·þÎñÆ÷Êý¾Ý¿âͬ²½µÄÅäÖã¬ÏÂÃæ¾ÍΪÄú½éÉܸù¦ÄܵÄʵÏÖ·½·¨£¬Ï£Íû¶ÔÄúÓÐËù°ïÖú¡£
¶à¸öMySql·þÎñÆ÷Êý¾Ý¿âͬ²½£¬Ó¦¸ÃÈçºÎ½øÐÐÅäÖÃÄØ£¿ÏÂÃæΪÄú½éÉܵÄÓï¾ä¾ÍÊÇÓÃÓÚʵÏÖ¶à¸öMySql·þÎñÆ÷Êý¾Ý¿âͬ²½µÄÅäÖõģ¬¹©Äú²Î¿¼¡£
¶à¸öMySql·þÎñÆ÷Êý¾Ý¿âͬ²½µÄÅäÖÃÓï¾ä˵Ã÷(»ù±¾ÖªÊ¶):
#·þÎñÆ÷ID, ÿ̨·þÎñÆ÷µÄID²»ÄÜÉèΪÏàͬµÄÊý.
server-id=1
#ÆôÓôӿâÈÕÖ¾£¬ÕâÑù¿ÉÒÔ½øÐÐÁ´Ê½¸´ÖÆ
log-slave-updates
#´Ó¿âÊÇ·ñÖ»¶Á£¬0±íʾ¿É¶Áд£¬1±íʾֻ¶Á
read-only=1
#Ö»¸´ÖÆij¸ö±í
replicate-do-table=tablename
#Ö»¸´ÖÆijЩ±í£¨¿ÉÓÃÆ¥Åä·û£©
replicate-wild-do-table=tablename%
#Ö»¸´ÖÆij¸ö¿â
replicate-do-db=dbname
#Ö»¸´ÖÆijЩ¿â
replicte-wild-do-table=dbname%.%
#²»¸´ÖÆij¸ö±í
replicate-ignore-table=tablename
#²»¸´ÖÆijЩ±í
replicate-wild-ignore-table=tablename%
#²»¸´ÖÆij¸ö¿â
replicate-ignore-db=dbname
#³öÏÖ´íÎóºóºöÂÔ£¬Èç¹û²»¼ÓÕâ¸ö£¬³öÏÖÈκδíÎó£¬Í¬²½½ø³Ì»áÖÕÖ¹
slave-skip-errors=all
sync_binlog =1
#¸´ÖÆÍêµÄsqlÓï¾äÊÇ·ñÁ¢¼´´ÓÖмÌÈÕÖ¾ÖÐÇå³ý£¬1±íʾÁ¢¼´Çå³ý
relay-log-purge=1
#´Ó·þÎñÆ÷Ö÷»ú£¬ÓÃÓÚshow slave hostsÉú³É´Ó¿âÇåµ¥
report-host=hostname
#Ö÷·þÎñÆ÷Ö÷»úµØÖ·Óë¶Ë¿Ú, ÓÃÓÚ´Ó·þÎñÆ÷Á¬½Óµ½Ö÷·þÎñÆ÷
master-host=hostname
master-port=3306
#Ö÷·þÎñÆ÷Êý¾Ý¿âÓû§ÃûÓëÃÜÂë(Ç븳Ó踴ÖƵÄȨÏÞ(slave))
master-user=dbuser
master-password=password
#Ô¤ÉèÖØÊÔ¼ä¸ôʱ¼ä
master-connect-retry=60
#¿ªÆôÊý¾Ý¿âÈÕÖ¾
log-bin=mysql-bin.log
#Ҫͬ²½µÄÊý¾Ý¿âµÄÃû×Ö
binlog-do-db=dbname
binlog-ignore-db=dbname
ÍƼöÐÅÏ¢
- ¡¾ÊÓƵ²¥·Å¡¿JplayerÊÓƵ²¥·ÅÆ÷µÄʹÓÃ
- memcacheÄÚ´æÔÀí
- Memcache¼¼Êõ·ÖÏí£º½éÉÜ¡¢Ê¹Óᢴ洢¡¢Ëã·¨¡¢ÓÅ»¯....
- php³£ÓÃÕýÔò±í´ïʽ
- phpÐÔÄܼà²âÄ£¿éXHProf
- ÈÃCI¿ò¼ÜÖ§³Öservice²ã
- ʹÓÃPHPÉú³É´øLOGOµÄ¸öÐÔ»¯¶þάÂëͼÏñ
- ¹ØÓÚCodeIgniterÄã¿ÉÄܲ»ÖªµÀµÄ5¸ö֪ʶµã
- Memcache ºÁÃ뼶³¬Ê±¼°ÆäËû³£¼ûÎÊÌâ»ã×Ü
- [PHP±Ê¼Ç]PHPQueryÒ»¸ö´¦ÀíDOMµÄÀûÆ÷
ÈÈÃÅÐÅÏ¢
- nohup: redirecting stderr to stdou....
- ʹÓÃlog_formatΪNginx·þÎñÆ÷ÉèÖøüÏêϸµÄÈÕÖ¾¸ñʽ
- jquery easyUI--dataGrid-Json
- [Ô´´]·ÂGoogle Reader¡¢ÐÂÀË΢²©¡¢ÌÚѶ΢²©µ....
- ÀûÓÃKeepalived+mysql¹¹½¨¸ß¿ÉÓÃMySQLË«Ö÷×Ô¶....
- Nginx+keepalivedʵÏÖ¸ºÔؾùºâºÍË«»úÈȱ¸¸ß¿ÉÓÃ
- jqueryʵÏÖÒ³Ãæ¼ÓÔؽø¶ÈÌõ
- Rolling cURL: PHP²¢·¢×î¼Ñʵ¼ù
- codeigniter ·ÓÉÖÕ¼«ÓÅ»¯(url rewrite)
- linuxÏÂÉèÖÃsshÎÞÃÜÂëµÇ¼
×î½ü¸üÐÂ
- PHP»ñÈ¡Óû§µÄÕæʵIP£¬²¢ÅжÏÊÇ·ñÄÚÍøIP
- PHP ´íÎóÈÕÖ¾ error_log
- ÀûÓÃbigpipe»úÖÆʵÏÖÒ³ÃæÄ£¿éµÄÒì²½äÖȾ chunked¼¼Êõ
- php¿ØÖÆÎļþÏÂÔØËÙ¶È
- js + php ¶ÁÈ¡¡¢²¥·ÅÊÓƵÁ÷ ¼æÈÝfirefox£¬c....
- ¡¾ÊÓƵ²¥·Å¡¿JplayerÊÓƵ²¥·ÅÆ÷µÄʹÓÃ
- UNICODE Óë UTF-8 µÄ¹Øϵ
- memcacheÄÚ´æÔÀí
- Memcache¼¼Êõ·ÖÏí£º½éÉÜ¡¢Ê¹Óᢴ洢¡¢Ëã·¨¡¢ÓÅ»¯....
- phpʹÓÃmb_detect_encoding¼ì²â×Ö·û´®±àÂë
ÆÀÂÛ