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

¹ØÓÚMYSQLµÄinnodb±í±¸·ÝµÄÎÊÌâ

ÇëÎÊÏÂÄÄλÈÊÐÖÓбȽϺõı¸·Ý·½°¸£¬ÓÃʲô¹¤¾ß»òÕßÓÃʲô·½Ê½£¬Ð¡µÜ½è¼øÏÂ
Ö±½ÓÓÃMYSQLDUMP±¸·Ý
OR
ÓÃSQLYOGÖ®ÀàµÄͼÐλ¯¹ÜÀí¹¤¾ß±¸·Ý

Ö±½ÓÓÃmysql×Ô´øµÄ mysqldump ¾Í¿ÉÒÔÁË¡£

http://dev.mysql.com/doc/refman/5.1/zh/database-administration.html#disaster-prevention
5.9. ±¸·ÝÓë»Ö¸´
5.9.1. Êý¾Ý¿â±¸·Ý
5.9.2. ʾÀýÓñ¸·ÝÓë»Ö¸´²ßÂÔ
5.9.3. ×Ô¶¯»Ö¸´
5.9.4. ±íά»¤ºÍ±ÀÀ£»Ö¸´
5.9.5. myisamchk£ºMyISAM±íά»¤ÊµÓù¤¾ß
5.9.6. ½¨Á¢±íά»¤¼Æ»®
5.9.7. »ñÈ¡¹ØÓÚ±íµÄÐÅÏ¢


ÒòΪijЩԭÒò£¬²»×¼±¸²ÉÓÃÖ±½ÓÓÃmysql×Ô´øµÄ mysqldump£¬ËùÒÔµÃÁíÏë°ì·¨

ÓÐûÓбȽϺõĵÚÈý·½Ëã·¨Á÷³Ì

ÒýÓÃÒòΪijЩԭÒò£¬²»×¼±¸²ÉÓÃÖ±½ÓÓÃmysql×Ô´øµÄ mysqldump£¬ËùÒÔµÃÁíÏë°ì·¨


ÄÇÄãµÄÐèÇóÊÇʲôÄØ£¿
ÓóÌÐòÖð±í±éÀú£¬È»ºó°ÑÊý¾Ýдµ½Îı¾ÎļþÖУ¿

ÒýÓÃ
ÓÐûÓбȽϺõĵÚÈý·½Ëã·¨Á÷³Ì

ÄǾÍÖ»ÓÐÓÃSELECT INTO OUTFILE

ºÇºÇ£¬ÊµÔÚ²»ÐÐÖ»ÄÜÓÃÕâÕÐÁË£¬ºÃÏñÌý˵ÓеÚÈý·½¿ªÔ´µÄ¹¤¾ßÔÚ×öÕâ¸ö£¬ÎÒÔÙÕÒÕÒ°É£¬Èç¹ûÕÒµ½£¬Ôٺʹó¼Ò¹²Ïí

²Î¿¼£ºhttp://blog.csdn.net/chuan122345/archive/2009/12/07/4956006.aspx

¿ÉÒÔÓÃSELECT * INTO OUTFILE 'file_name' from tbl_name Õâ¸öSQL Óï¾ä£¬Õâ¸öÎļþ½«ÔÚMYSQL ·þÎñÆ÷µÄÖ÷»úÉϱ»´´½¨£¬¶ø²»ÊÇÔÚ¿Í»§¶ËÖ÷»úÉÏ¡£Í¨¹ýÕâ¸öÓï¾äÉú³ÉÎļþʱ£¬Êä³öÎļþ²»ÄÜÒѾ­´æÔÚ£¬ÒòΪ¸²¸ÇÎļþÓÐÊý¾Ý°²È«·½ÃæµÄ·çÏÕ¡£Õâ¸ö·½·¨¿ÉÒÔ±¸·ÝÈκÎÀàÐ͵ÄÊý¾ÝÎļþ£¬µ«Ö»Äܱ£´æ±íÊý¾Ý£¬²»Äܱ£´æ±í½á¹¹

À䱸»¹ÊÇÈȱ¸£¬
À䱸£¬¿ÉÒÔÖ±½Ó±¸·ÝdataĿ¼»ò


Ïà¹ØÎÊ´ð£º

c,c++Á¬½Ómysql ÕÒ²»µ½Í·²¿Îļþ£¨ÐÂÊÖ£©

±àÒëÆ÷£ºC-Free4
mysql µ¥¶À°²×°µÄ£¬ÏÖÔÚΪapache+php+mysql¿ÉÒÔʹÓá£
×î½üÔÚÁ·Ï°c£¬c++£»ÏëÓÃc£¬c++Á¬½ÓÏÂÎÒµÄmysql£¬ºÃ¶àµØ·½¶à˵mysql.hÕÒ²»µ½¡£¶øÇÒÎÒmysqlûÓÐËùνµÄincludeÎļþ¼Ð°¡¡£
Íü¸ßÊÖÖ¸µãÒ»¶ ......

ÐèÒªÊÓƵ½Ì³ÌµÄÐÂÊÖ½ø php + mysql + apache ÅäÖÃ

Õâ¸öÊÓƵ½²µÄºÜÏêϸ, ¶ÔÐÂÊַdz£ÓÐÓÃ, »ù±¾ÉÏÒ»¿´¾Í¶®
ÓÉÓÚÌ«´óÁË(50m, ÎÒÖ»ÄÜÉÏ´«20m), ÎÒÉÏ´«²»ÁË, Ö»ºÃÌù³öÏÂÔصØÖ·
ÏÂÔصØÖ·: http://ftel1.3800hk.com/0807/080720djxnzj.rar
ºÃ¶«Î÷,ϸö¿´¿´


......

mysql ÔõÑù²ÅÄܶÔͬһÕűí²éѯºóÔÙ¸üÐÂ?

Çë¸ßÊÖÖ¸µã,ÎÒ¶ÔÒ»Õűí²éѯºóÔÙ¸üÐÂ,²éѯÊÇ×Ó²éѯ,±¨´í:
You can't specify target table 'a_table' for update in from clause
ÍêÕûSQLÓï¾äÊÇ
UPDATE a_table SET STATUS=0 WHERE ID=(SELECT MIN(ID) from a_tab ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ