MySQLÉúƧ×ÖÎÞ·¨ÏÔʾ½â¾ö·½·¨
µÚÒ»´Î²ÉÓÃMySQL×÷ΪҵÎñÓ¦ÓõÄÊý¾Ý¿â£¬ÓÉÓÚ¾Ñé²»¹»·á¸»£¬ÔÚ°²×°Êý¾Ý¿âµÄʱºòÑ¡ÔñÁËGB2312±àÂë¡£
ÆðÏÈÓõÄÒ²ËãµÃÐÄÓ¦ÊÖ£¬È»¶øºóÐø·¢ÏÖÁËÉúƧ×Ö²»ÄÜÏÔʾµÄÇé¿ö£¬°ÑÎÒ¸ãµÃ½¹Í·Àö¾¹ýºÃ¼¸ÌìµÄÃþË÷¡¢
ѧϰ£¬ÖÕÓÚ°ÑÎÊÌâ½â¾öÁË¡£¼ÇϽâ¾ö²½Ö裬Óë¸úÎÒÒ»ÑùµÄÐÂÊÖ·ÖÏí¡£
²½ÖèÒ»£º ·ÖÎö³öÏÖÂÒÂëµÄÔÒò
ÓÉÓÚGB2312×Ö·û¼¯Ö»ÊÕ¼ÁË6763¸öºº×Ö£¬µ¼ÖÂһЩÉúƧ×ÖÎÞ·¨Õý³£ÏÔʾ¡£
²½Öè¶þ£ºÈ·¶¨½â¾ö·½·¨
°Ñ×Ö·û¼¯ÓÉGB2312¸Ä³ÉGBK¡£µ«ÊÇÓÉÓÚ²»ÄܶªÆú֮ǰµÄÊý¾Ý£¬ÈçºÎÐÞ¸ÄMySQLµÄ×Ö·û¼¯³ÉÁ˹ؼü¡£
²½ÖèÈý£º×Ö·û¼¯µÄÐÞ¸Ä
a. Ïȵ¼³ö±í½á¹¹
mysqldump -u root -p --default-character-set=gbk -d Êý¾Ý¿âÃû > createdb.sql
ÆäÖвÎÊý-d±íʾֻµ¼³ö±í½á¹¹£¬²»µ¼³öÊý¾Ý¡£
b. ´ò¿ªcreatedb.sql£¬ÊÖ¹¤°Ñgb2312Ìæ»»³Égbk¡£
c. µ¼³öËùÓмǼ
mysqldump -u root -p --quick --no-create-info --extended-insert --default-character-set=gb2312 Êý¾Ý¿âÃû > data.sql
ÆäÖвÎÊý--no-create-info±íʾ²»Éú³É½¨±íÓï¾ä£»--default-character-set=gb2312±íʾ°´ÕÕÔÀ´×Ö·û¼¯µ¼³öËùÓÐÊý¾Ý¡£
d. ´ò¿ªdata.sql£¬ÊÖ¹¤°ÑSET NAME gb2312¸Ä³ÉSET NAME gbk¡£
×¢Ò⣺Èç¹ûdata.sqlºÜ´ó£¬¿ÉÄÜÐèÒªÕÒÒ»Ð©Ìæ»»¹¤¾ßÀ´Íê³ÉÌæ»»²Ù×÷£¬·ñÔò¿ÉÒÔÖ±½ÓÓÃUltraEditÖ®ÀàµÄ±à¼¹¤¾ß´ò¿ªÐ޸ġ£
e. ÔÚеķþÎñÆ÷ÉÏ´´½¨±í£¬Ö´ÐÐcreatedb.sql¡£
mysql -u root -p Êý¾Ý¿âÃû < createdb.sql
f. µ¼ÈëÊý¾Ý£¬Ö´ÐÐdata.sql
mysql -u root -p Êý¾Ý¿âÃû < data.sql
g. ´´½¨Êý¾Ý¿âÓû§¡£
µ½Õâ¶ùÒѾÍê³ÉÁËÊý¾Ý¿â×Ö·û¼¯´Ógb2312µ½gbkµÄÐ޸쬽ÓÏÂÈ¥¿ÉÒԵǼÊý¾Ý¿â£¬ÊÖ¹¤°ÑÏÔʾΪ"?"µÄÂÒÂë×ÖÖØÐ¸üÐÂһϡ£
¿´¿´ÊDz»ÊǴ󹦸æ³ÉÁË£¡
Ïà¹ØÎĵµ£º
1¡¢ÔÚÅäÖÃmysqlʵÀýµÄÓïÑÔÑ¡Ïîʱ£¬Ñ¡Ôñutf-8
2¡¢ÔÚhtml,phpÒ³ÃæÖÐ ¼ÓÉÏ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />£¬Èç¹û²»ÐÐÔÙÔÚ phpÎļþ Æðʼ´¦¼Ó header("Content-Type:text/html;charset=utf-8");
3¡¢ÔÚphpÖÐ×öÊý¾Ý¿âÁ¬½Óʱ£¬ÎÒÓõÄʱpdoµÄÐÎʽ£¬Ë ......
[ ÅäÖÃ ]
Ö´ÐÐÔöÁ¿±¸·ÝµÄǰÌáÌõ¼þÊÇMySQL´ò¿ªlog-binÈÕÖ¾¿ª¹Ø£¬ÀýÈçÔÚmy.ini»òmy.cnfÖмÓÈë log-bin=C:/Program Files/MySQL/MySQL Server 6.0/Data/mysql-bin “log-bin=”ºóµÄ×Ö·û´®ÎªÈÕÖ¾¼ÇÔØÄ¿Â¼£¬Ò»°ã½¨Òé·ÅÔÚ²»Í¬ÓÚmysqlÊý¾ÝĿ¼µÄ´ÅÅÌÉÏ¡£
[ ÍêÈ«±¸·Ý]
¼Ù¶¨ÐÇÆÚÈÕÏÂÎç1µãÖ´ÐÐÍêÈ«±¸·Ý£¬ÊÊÓÃÓÚMyISAM ......
dblpÊý¾Ý¿âÖÐÒýÓÃÐÅÏ¢ºÜÉÙ£¬Æ½¾ùһƪÂÛÎÄÒýÓÃ0.2ƪ¡£Ê¹ÓÃdblp×öʵÑéÊý¾Ý¼¯µÄijƪÂÛÎÄÌáµ½£¬¿ÉÒÔËæ»úÌí¼ÓÒýÓÃÐÅÏ¢¡£ÊÜ´ËÆô·¢£¬ÎÒ´òËãΪÿһƪÂÛÎͼÌí¼Ó20ÆªËæ»úÒýÓã¬ÓÚÊǾÍд³öÁËÈçϵÄsqlÓï¾ä£º
String sql = "insert into citation(pId1,pId2) values( (selec ......
×î½üÐÂÂòÁ˸öµçÄÔ£¬ÏµÍ³ÊÇwindows7£¬window7ÔÚ½çÃæ£¬¹¦ÄÜ·½Ã涼ͦÈÃÈËÂúÒâµÄ£¬¸Ð¾õºÜˬ£¬²»Ë¬µÄÊÇÓÖÒªÖØÐ°²×°»·¾³ÁË¡£
ËùÓÐÈí¼þ¾ù°²×°ÔÚF:\server\ÏÂ
apacheĿ¼£ºF:\server\apache2.2
phpĿ¼£ºF:\server\php
msyqlĿ¼£ºF:\server\mysql
Ò»¡¢°²×°apache
°²×°apacheµÄ°æ±¾ÊÇ£ºhttpd-2.2.15-win32-x86-no_ssl.msi
° ......
ËäÈ»ºÜ¶àÈËÓÃmysql front£¬ µ«ÊǸöÈ˾õµÃmysql»¹ÊÇÃüÁîÐÐϱȽϺÃÓ㬱Ͼ¹Êý¾Ý¿âÔÚÃüÁîÐÐϲÙ×÷±È½ÏÍõµÀ¶øÇÒmysqlÍêÈ«Ãâ·Ñ¡£¡£
ÏÂÃæ½éÉÜһЩmysqlÃüÁîÐÐϳ£ÓõÄÃüÁÓÐһЩÊý¾Ý¿â»ù´¡µÄ£¬¼´Ê¹ÊǵÚÒ»´ÎÓÃmysql¶ÔÕÕÏÂÃæµÄÃüÁî²Ù×÷Ò²ÍêÈ«¿ÉÒÔ£¬Èç¹ûÎÒ·¢ÏÖ»¹ÓÐÆäËüÃüÁîÒ²ÊǾ³£Óõ½µÄÎÒ»áÂ½Ðø¸üС£¡£¡£
·þÎñÆ÷£º
1. Æô¶¯m ......