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

mysqlÎóɾ

¸Õ¸ÕʹÓÃmysql£¬ÎóɾÁËtestÊý¾Ý¿â£¬»¹Ã»À´µÃ¼°±¸·Ý£»
ÔõÑù¿ÉÒÔ»Ö¸´£¿
ÓÃÊý¾Ý»Ö¸´ÎļþÊÔÊÔ

Èç¹ûÓжþ½øÖÆÈÕÖƵĻ°¿ÉÒԲο¼Õâ¸öÌù×ӵIJÙ×÷»Ö¸´ÄãµÄÊý¾Ý¡£

http://topic.csdn.net/u/20090608/20/e50feb34-0a07-4675-80d4-2eac35973286.html?58720
ʹÓÃmysqlbinlog»Ö¸´Êý¾Ý

²Î¿¼Ò»Ï¶þ樓°É£¬ÓÑÇé幫頂ÁË¡£

°ï¶¥

mysqlbinlog

SQL code:

[b]ÀûÓÃmysqlbinlog¹¤¾ß»Ö¸´MySQLÊý¾Ý¿â[/b]

Èç¹ûMySQL·þÎñÆ÷ÆôÓÃÁ˶þ½øÖÆÈÕÖ¾£¬Äã¿ÉÒÔʹÓÃmysqlbinlog¹¤¾ßÀ´»Ö¸´´ÓÖ¸¶¨µÄʱ¼äµã¿ªÊ¼ (ÀýÈ磬´ÓÄã×îºóÒ»´Î±¸·Ý)Ö±µ½ÏÖÔÚ»òÁíÒ»¸öÖ¸¶¨µÄʱ¼äµãµÄÊý¾Ý¡£¹ØÓÚÆôÓöþ½øÖÆÈÕÖ¾µÄÐÅÏ¢£¬²Î¼û5.11.3½Ú£¬¡°¶þ½øÖÆÈÕÖ¾¡±¡£¶ÔÓÚ mysqlbinlogµÄÏêϸÐÅÏ¢£¬²Î¼ûmysqlÊÖ²á8.6½Ú£¬¡°mysqlbinlog£ºÓÃÓÚ´¦Àí¶þ½øÖÆÈÕÖ¾ÎļþµÄʵÓù¤¾ß¡±¡£ ÒªÏë´Ó¶þ½øÖÆÈÕÖ¾»Ö¸´Êý¾Ý£¬ÄãÐèÒªÖªµÀµ±Ç°¶þ½øÖÆÈÕÖ¾ÎļþµÄ·¾¶ºÍÎļþÃû¡£Ò»°ã¿ÉÒÔ´ÓÑ¡ÏîÎļþ(¼´my.cnf or my.ini£¬È¡¾öÓÚÄãµÄϵͳ)ÖÐÕÒµ½Â·¾¶¡£Èç¹ûδ°üº¬ÔÚÑ¡ÏîÎļþÖУ¬µ±·þÎñÆ÷Æô¶¯Ê±£¬¿ÉÒÔÔÚÃüÁîÐÐÖÐÒÔÑ¡ÏîµÄÐÎʽ¸ø³ö¡£ÆôÓöþ½øÖÆÈÕÖ¾µÄÑ¡ÏîΪ-- log-bin¡£ÒªÏëÈ·¶¨µ±Ç°µÄ¶þ½øÖÆÈÕÖ¾ÎļþµÄÎļþÃû£¬
ÊäÈëÏÂÃæµÄMySQLÓï¾ä£º
SHOW BINLOG EVENTS G
Ä㻹¿ÉÒÔ´ÓÃüÁîÐÐÊäÈëÏÂÃæµÄÄÚÈÝ£º
mysql --user=root -pmy_pwd -e 'SHOW BINLOG EVENTS G'
½«ÃÜÂëmy_pwdÌ滻Ϊ·þÎñÆ÷µÄrootÃÜÂë¡£
1. Ö¸¶¨»Ö¸´Ê±¼ä
¶ÔÓÚMySQL 4.1.4£¬¿ÉÒÔÔÚmysqlbinlogÓï¾äÖÐͨ¹ý--start-dateºÍ--stop-dateÑ¡ÏîÖ¸¶¨DATETIME¸ñʽµÄÆðֹʱ¼ä¡£¾ÙÀý˵Ã÷£¬¼ÙÉèÔÚ½ñÌìÉÏÎç10:00(½ñÌìÊ


Ïà¹ØÎÊ´ð£º

ÎÒÒª°Ñ×¢²áÐÅÏ¢Ìá½»µ½mysqlÖУ¬ÒªÔõô°ìÄØ£¿

ÎÒÔÚ×¢²áÒ³ÃæдÈëÁËÈçÏ´úÂ룺
<?php
    $conn=mysql_connect("localhost","root","614510")or die("Êý¾Ý¿â·þÎñÆ÷Á¬½Ó´íÎó".mysql_error());
& ......

MYSQL°²×°Ê§°Ü

ÎÒÒÔÇ°°²×°ÁËÒ»´Î£¬ºóÀ´Ð¶ÔØÁË£¬ÏÖÔÚÔÙ°²×°µÄʱºò£¬Ìáʾ´íÎó£ºError 1305.Error reading from file C:DOCUME~1\LOCALS~1\Temp\mysql_server.msi.Verify that the file exists and that you can access it. 
¿ ......

MySQLÈëÃÅ

MySQLÈëÃÅ
¿ÉÒÔÏÈ¿´Ê²Ã´Êé¼®°¡£¿
ÏȶÁÈý±é¡¶Êý¾Ý¿âϵͳ¸ÅÂÛ¡·,ÕÆÎÕÊý¾Ý¿âµÄ»ù´¡ÀíÂÛ¡£
È»ºóÔÙ´Ö¿´Ò»±éMYSQLµÄ¹Ù·½Îĵµ¡£ MySQL¹Ù·½Îĵµ http://dev.mysql.com/doc/refman/5.1/zh/index.html

¾ÍÕÒÒ»±¾ºÜ»ù´ ......

mysqlÓï¾äÓÅ»¯ÎÊÌâ ´ó¼Ò¸øÓÅ»¯¸öSQLÓï¾ä

SELECT a.tguildname ,SUM(a.ct) +  if (SUM(b.ct) IS NULL ,0,SUM(b.ct)) from (
SELECT  tg.tguildname,c.cid, (
cf.fbb + cf.fgjbb + cf.fjybb + cf.fqb + cf.fgjqb + cf.fjyqb + cf.fqib + cf. ......

ÇóÒ»MYSQL´æ´¢¹ý³Ì

±í½á¹¹ÈçÏ£º

begin_ip          end_ip                add1            add2
------------------- ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ