¹ØÓÚMySQL±íÉè¼ÆÓ¦¸Ã×¢ÒâµÄÎÊÌâ(×öÁ˵ãÐÞ¸Ä)
¹ØÓÚMySQL±íÉè¼ÆÓ¦¸Ã×¢ÒâµÄÎÊÌâ(×öÁ˵ãÐÞ¸Ä)
¹Ø
ÓÚÉè¼Æ±íʱӦ¸Ã×¢ÒâµÄÎÊÌâ
ÈçÓдíÎó»¶Ó´ó¼ÒÖ¸³ö¡£Õâ
¶Îʱ¼äÔÚ¼ÒÀ×öÁ˵ãÐÞÕý¡£
1
¡¢É÷ÖØÑ¡Ôñ±íÃû¡£
ÓÐ
Á½ÖÖÑ¡Ôñ£º
°´ÕÕ¶àÊý¿ª·¢ÓïÑÔµÄÃüÃû¹æÔò¡£±ÈÈç
£¨myCustomer£©¡£
°´ÕÕ¶àÊý¿ªÔ´Ë¼ÏëÃüÃû¹æ
Ôò¡£±ÈÈ磨my_customer£©¡£
°´ÕÕÔÛÃÇÖйú
È˵Ä˼Ïë¡£±ÈÈ磨ÎҵĿͻ§£©¡£
µÚÒ»ÖÖÓиöȱµã£¬ºÜÈÝ
Ò×Íüµô´óдµÄ×Öĸ¡£
µÚ¶þÖÖÔò±È½ÏºÃ£¬Ã¿¸öWORD¼ä
ÓÃÏ»®ÏßÁ¬½Ó£¬±ÜÃâÒÅÍü¡£
µÚÈýÖÖ½¨Òé²»ÒªÓã¬ËäÈ»ºÜ
ºÃ¼Ç¡£²»¾õµÃ½âÎöÕâ¸ö±íµÄʱºò»¹ÐèÒª±àÂëת»¯Âð£¿ÎÒ¸öÈËÀí½â£¬´ó¼Ò¿ÉÒÔ²¹³ä¡£
2
. ¹ØÓÚ±àÂëµÄÉ趨¡£
A£® GBK/GB2312.
£¨ÊÊÓÃÓÚ´¿ÖÐÎÄ´æ´¢£©¡£
B£® UTF8.
£¨ÊÊÓÃÓÚÖÐÓ¢ÎÄ»ìºÏ´æ´¢£©¡£
C£® LATIN1¡££¨ÊÊ
ÓÃÓÚ´¿Ó¢ÎÄ´æ´¢£©¡£
D. ÆäËûµÄ¡£
3
. ¹ØÓÚ±íÒýÇæµÄÑ¡Ôñ¡£
A. MYISAM.
£¨ºÜ¶àÈË˵ËýµÄ±í¼¶Ëø¶¨»á´øÀ´ºÃ¶àÎÊÌ⣬ÆäʵֻҪÉè¼ÆºÃ¶ÔÓ¦µÄ±íÒÔ¼°Ð´ºÃ¶ÔÓ¦µÄSQL²éѯ¾ÍûÓÐÄÇô´óµÄÎÊÌâ¡££©
B. INNODB. £¨Èç
¹ûÒªÓõ½ÊÂÎñ£¬Ñ¡ÔñËý²»»á´í¡£ÖÁÓÚ¶àÊýÈ˽²µÄMASTER/SLAVE½á¹¹ÉÏÓÃINNODBÔÚMASTERµÄÑ¡ÔñÊÇ·ñÕýÈ·£¬¾ÍÒª¿´ÄãÔõôÓÃÁË¡£²»ÄÜһζµÄ
·è¿ñʹÓÃINNODB¡£³ý·ÇÄãÏëҪȷ±£·Ç³£¸ß¿ÉÓÃÐÔ£¬
£©
C. &
Ïà¹ØÎĵµ£º
±ÏÒµÉè¼ÆµÄ³ÌÐòÖ÷Ìå±àºÃÁË£¬ÔËÐÐÉÙÁ¿Êý¾ÝûÓÐÈκÎÎÊÌ⣬һµ©Êý¾ÝÁ¿Ôö¼Óµ½22w£¬ÔËÐÐʱ¼ä¾Í³¤µÃÁîÈË·¢Ö¸¡£µ¼Ê¦½¨Ò飬³ÌÐòÖо¡¿ÉÄܵؼõÉÙÓëÊý¾Ý¿â½»»¥µÄ´ÎÊý£¬¾¡¿ÉÄܵذѹ¤×÷¶ª¸øÊý¾Ý¿âÍê³É¡£ÔÚÕâһ˼ÏëµÄÖ¸µ¼Ï£¬ÎÒÈýÌì´ó·ùÐ޸ijÌÐò£¬²¿·Ö´úÂ뼸ºõÊÇ·ÐÂÁËÒ»±é¡£×ܵÄÀ´Ëµ£¬ÔËÐÐʱ¼äȷʵµÃµ½ÁË ......
´ÓÍøÂçÕª³µ½µÄ½â¾ö·½·¨——
½â¾ö·½·¨¶þ£º
Á¬½Ómysqlʱ(ÎÞÂÛÔÚ´Ómysql¶Á»¹ÊÇÈ¡Êý¾ÝµÄÇé¿ö)£¬Ö¸¶¨Ê¹ÓõıàÂ뷽ʽΪutf-8£¬¾ßÌå´úÂëÈçÏÂ
//×°ÔØmysql-jdbcÇý¶¯
Class.forName("com.mysql.jdbc.Driver" ......
Êý¾Ý²Ö¿âÖ®¸¸Bill InmonÔÚ1991Äê³ö°æµÄ“Building the Data
Warehouse”Ò»ÊéÖÐËùÌá³öµÄ¶¨Òå±»¹ã·º½ÓÊÜ——Êý¾Ý²Ö¿â£¨Data Warehouse£©ÊÇÒ»¸öÃæÏòÖ÷ÌâµÄ£¨Subject
Oriented£©¡¢¼¯³ÉµÄ£¨Integrated£©¡¢Ïà¶ÔÎȶ¨µÄ£¨Non-Volatile£©¡¢·´Ó³ÀúÊ·±ä»¯£¨Time
Variant£©µÄÊý¾Ý¼¯ºÏ£¬ÓÃÓÚÖ§³Ö¹ÜÀí¾ö²ß(D ......
Red Hat Linux Ï°²×°mysql°æ±¾³åÍ»ÎÊÌâ½â¾ö
¸ÕÅöµ½Ò»¸öÎÊÌ⣬ÓÉÓÚÔÚʹÓõÄlinux·þÎñÆ÷ÉÏÒѾ°²×°ÁËÒ»¸ö½ÏµÍ°æ±¾µÄMySql server£¬Ê¹ÓÃrpm°ü½øÐа²×°Ê±£¬Ìáʾ°æ±¾³åÍ»£¬°²×°²»ÄܼÌÐø½øÐС£
ÓÉÓھɵÄÊý¾Ý²»ÏëÒªÁË£¬½â¾ö°ì·¨ÊÇÕâÑùµÄ£º
[b]1¡¢ÏÈ°ÑϵͳÀï°²×°µÄËùÓÐmysqlÕÒ³öÀ´[/b]
#rpm -qa | grep -i mysql ÔËÐдËÃüÁîº ......