ºìÁªLinuxÃÅ»§
Linux°ïÖú

²é¿´Êý¾Ý¿â×Ö·û¼¯¼°Êý¾Ý¿âÁ¬½ÓÇé¿ö

·¢²¼Ê±¼ä:2008-07-28 00:02:28À´Ô´:ºìÁª×÷Õß:Jeicoe
1¡¢Ê¹ÓÃSHOW CHARACTER SETÓï¾äÁгöÊý¾Ý¿âÖпÉÓõÄ×Ö·û¼¯£º

mysql> SHOW CHARACTER SET;

2¡¢ÒªÏëÁгöÒ»¸ö×Ö·û¼¯µÄУ¶Ô(Collation)¹æÔò£¬Ê¹ÓÃSHOW COLLATIONÓï¾ä¡£

ÀýÈ磬ҪÏë²é¿´latin1£¨¡°Î÷Å·ISO-8859-1¡±£©×Ö·û¼¯µÄУ¶Ô¹æÔò£¬Ê¹ÓÃÏÂÃæµÄÓï¾ä²éÕÒÄÇЩÃû×ÖÒÔlatin1¿ªÍ·µÄУ¶Ô¹æÔò£º

mysql> SHOW COLLATION LIKE 'latin1%';

3.²é¿´Êý¾Ý±íµÄ×Ö·û¼¯

mysql> show create table mytable;

Õâ¸öÃüÁîÒ²¿ÉÒԲ鿴½¨Õâ¸ö±íµÄSQLÓï¾ä¡£

4.²é¿´Êý¾Ý¿âÁ¬½ÓÇé¿ö£º

mysql>show processlist;

mysql>show processlist\G;
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 0 ÌõÆÀÂÛ