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

½â¾öMySQLÂÒÂë

mysql±àÂëӦעÒâµÄ»·½Ú£º
 
Õ⼸¸ö»·½Ú±àÂ붼ͳһÁË£¬Ò»°ã²»»á³öÏÖÂÒÂë¡£BTW:
¿ÉÒÔÓÃSET NAMES xÁÙʱÉèÖÃmysql±àÂ룺
Ï൱ÓÚ
SET character_set_client = x;
SET character_set_results = x;
SET character_set_connection = x;
È磺
mysql_query("SET NAMES 'gb2312'") or die("Query failed : " . mysql_error());


Ïà¹ØÎĵµ£º

mysqlÈçºÎ±¸·ÝÊý¾Ý¿â

Ó¦¸Ã˵һ°ãµÄÊý¾Ý¿â¶¼ÓÐBackUpµÄÐèÇó, MySql±¸·ÝÊý¾Ý¿âµÄ·½Ê½ºÜ¼òµ¥, µ«ÊÇÔÚÍøÉÏ˵µÃÔÆÀïÎíÀï, Ò²Ó¦¸ÃÊÇÎÒ¶ÔMySqlÊý¾Ý¿â²»ÊìϤ.
 
Ä¿±ê(Target) : ½«±¾»úÖеÄmysqlÊý¾Ý¿â±¸·Ýµ½±¾»úÖеÄmydatabaseÊý¾Ý¿âÖÐ - Ò²¾ÍÊÇÍêÈ«µÄCopyÒ»¸öÊý¾Ý¿â.
 
#1. C:\Program Files\MySQL\MySQL Server 5.0\bin>mysqldump -u ......

windows°²×°apache+php+mysqlµÄһЩ¼Ç¼

apache°²×°£¬mysql°²×°£¬php5Ö±½Ó½âѹ£¬¾ù·ÅÔÚD:\wwwÏ¡£
Ŀ¼½á¹¹Îª£º
D:\www\apache2
D:\www\mysql
D:\www\php5
½«php5\php.ini-dist¸´ÖÆΪphp.ini£¬°ÑÐèÒªÓõ½µÄ×é¼þ½«Ç°ÃæµÄ;È¥µô¡£
Èç
extension=php_mysql.dll
extension=php_gd2.dll
ÔÚapache2µÄconf/httpd.confÎļþÖмÓ
LoadFile D:/www/php5/php5ts.dll
......

MySQLµ¼Èëµ¼³öÃüÁî

MySQLµ¼Èëµ¼³öÃüÁî
1.µ¼³öÕû¸öÊý¾Ý¿â
¡¡¡¡mysqldump -u Óû§Ãû -p Êý¾Ý¿âÃû > µ¼³öµÄÎļþÃû
¡¡¡¡mysqldump -u wcnc -p smgp_apps_wcnc > wcnc.sql
2.µ¼³öÒ»¸ö±í
¡¡¡¡mysqldump -u Óû§Ãû -p Êý¾Ý¿âÃû ±íÃû> µ¼³öµÄÎļþÃû
¡¡¡¡mysqldump -u wcnc -p smgp_apps_wcnc users> wcnc_users.sql
3.µ¼³öÒ ......

mysqlÖÐÎÄÅÅÐò

UTF8 ĬÈÏУ¶Ô¼¯ÊÇ utf8_general_ci , Ëü²»ÊÇ°´ÕÕÖÐÎÄÀ´µÄ¡£ÄãÐèҪǿÖÆÈÃMySQL°´ÖÐÎÄÀ´ÅÅÐò¡£
select

*

from
core_vender_info
order

by

convert
(vender_abbrev USING gbk) COLLATE gbk_chinese_ci
......

ASP.NETÓëMySqlµÄÁ¬½Ó

1.Êý¾ÝÁ¬½Ó·½Ê½
ASP.NET±¾ÉíµÄÊý¾Ý·ÃÎÊADO.NET²»Ö§³Ö¶ÔÓÚMySqlµÄÁ¬½ÓºÍ²éѯ£¬µ«ÊÇMySQL¹ÙÍøÉϾùÌṩÁ˶àÖÖASP.NETÁ¬½Óµ½MySQLµÄ·½Ê½£º
£¨1£©ODBCÇý¶¯µÄ·ÃÎÊ·½Ê½£ºmysql-connector-odbc-5.1.5-win32.msi£¬ODBC
£¨2£©ADO.NET¶ÔÓÚMySQLµÄ·ÃÎÊ·½Ê½£ºmysql-connector-net-6.2.2.zip
¸öÈËÑ¡ÓõÄÊǵڶþÖÖ£¬¸Ð¾õ·½±ã£¬ºÍ.NET¶ÔS ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ