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

MySQL ³£¼û´íÎó´úÂë¶ÔÕÕ±í

1005£º´´½¨±íʧ°Ü
1006£º´´½¨Êý¾Ý¿âʧ°Ü
1007£ºÊý¾Ý¿âÒÑ´æÔÚ£¬´´½¨Êý¾Ý¿âʧ°Ü
1008£ºÊý¾Ý¿â²»´æÔÚ£¬É¾³ýÊý¾Ý¿âʧ°Ü
1009£º²»ÄÜɾ³ýÊý¾Ý¿âÎļþµ¼ÖÂɾ³ýÊý¾Ý¿âʧ°Ü Chinaz.com
1010£º²»ÄÜɾ³ýÊý¾ÝĿ¼µ¼ÖÂɾ³ýÊý¾Ý¿âʧ°Ü
1011£ºÉ¾³ýÊý¾Ý¿âÎļþʧ°Ü
1012£º²»ÄܶÁȡϵͳ±íÖеļǼ
1020£º¼Ç¼Òѱ»ÆäËûÓû§ÐÞ¸Ä
1021£ºÓ²ÅÌÊ£Óà¿Õ¼ä²»×㣬Çë¼Ó´óÓ²ÅÌ¿ÉÓÿռä
1022£º¹Ø¼ü×ÖÖظ´£¬¸ü¸Ä¼Ç¼ʧ°Ü
1023£º¹Ø±Õʱ·¢Éú´íÎó
1024£º¶ÁÎļþ´íÎó
1025£º¸ü¸ÄÃû×Öʱ·¢Éú´íÎó
1026£ºÐ´Îļþ´íÎó
1032£º¼Ç¼²»´æÔÚ
1036£ºÊý¾Ý±íÊÇÖ»¶ÁµÄ£¬²»ÄܶÔËü½øÐÐÐÞ¸Ä
1037£ºÏµÍ³ÄÚ´æ²»×㣬ÇëÖØÆôÊý¾Ý¿â»òÖØÆô·þÎñÆ÷
1038£ºÓÃÓÚÅÅÐòµÄÄÚ´æ²»×㣬ÇëÔö´óÅÅÐò»º³åÇø
1040£ºÒѵ½´ïÊý¾Ý¿âµÄ×î´óÁ¬½ÓÊý£¬Çë¼Ó´óÊý¾Ý¿â¿ÉÓÃÁ¬½ÓÊý
1041£ºÏµÍ³ÄÚ´æ²»×ã
1042£ºÎÞЧµÄÖ÷»úÃû
1043£ºÎÞЧÁ¬½Ó
1044£ºµ±Ç°Óû§Ã»ÓзÃÎÊÊý¾Ý¿âµÄȨÏÞ
1045£º²»ÄÜÁ¬½ÓÊý¾Ý¿â£¬Óû§Ãû»òÃÜÂë´íÎó
1048£º×ֶβ»ÄÜΪ¿Õ
1049£ºÊý¾Ý¿â²»´æÔÚ
1050£ºÊý¾Ý±íÒÑ´æÔÚ
1051£ºÊý¾Ý±í²»´æÔÚ
1054£º×ֶβ»´æÔÚ (SQLSTATE: 42S22 )
1065£ºÎÞЧµÄSQLÓï¾ä£¬SQLÓï¾äΪ¿Õ
1081£º²»Äܽ¨Á¢SocketÁ¬½Ó
1114£ºÊý¾Ý±íÒÑÂú£¬²»ÄÜÈÝÄÉÈκμǼ
1116£º´ò¿ªµÄÊý¾Ý±íÌ«¶à
1129£ºÊý¾Ý¿â³öÏÖÒì³££¬ÇëÖØÆôÊý¾Ý¿â
1130£ºÁ¬½ÓÊý¾Ý¿âʧ°Ü£¬Ã»ÓÐÁ¬½ÓÊý¾Ý¿âµÄȨÏÞ
1133£ºÊý¾Ý¿âÓû§²»´æÔÚ
1141£ºµ±Ç°Óû§ÎÞȨ·ÃÎÊÊý¾Ý¿â
1142£ºµ±Ç°Óû§ÎÞȨ·ÃÎÊÊý¾Ý±í
1143£ºµ±Ç°Óû§ÎÞȨ·ÃÎÊÊý¾Ý±íÖеÄ×Ö¶Î
1146£ºÊý¾Ý±í²»´æÔÚ
1147£ºÎ´¶¨ÒåÓû§¶ÔÊý¾Ý±íµÄ·ÃÎÊȨÏÞ
1149£ºSQLÓï¾äÓï·¨´íÎó
1158£ºÍøÂç´íÎ󣬳öÏÖ¶Á´íÎó£¬Çë¼ì²éÍøÂçÁ¬½Ó×´¿ö
1159£ºÍøÂç´íÎ󣬶Á³¬Ê±£¬Çë¼ì²éÍøÂçÁ¬½Ó×´¿ö
1160£ºÍøÂç´íÎ󣬳öÏÖд´íÎó£¬Çë¼ì²éÍøÂçÁ¬½Ó×´¿ö
1161£ºÍøÂç´íÎó£¬Ð´³¬Ê±£¬Çë¼ì²éÍøÂçÁ¬½Ó×´¿ö
1062£º×Ö¶ÎÖµÖظ´£¬Èë¿âʧ°Ü
1064£ºÓï·¨´íÎ󣬳£¼ûµÄ±ÈÈç×¢ÊÍ-- ºóû¼Ó¿Õ¸ñ
1169£º×Ö¶ÎÖµÖظ´£¬¸üмǼʧ°Ü
1177£º´ò¿ªÊý¾Ý±íʧ°Ü
1180£ºÌá½»ÊÂÎñʧ°Ü
1181£º»Ø¹öÊÂÎñʧ°Ü
1193£º±äÁ¿Ã»ÉùÃ÷£¬³£ÔÚд´æ´¢¹ý³Ìʱ·¢Éú
1203£ºµ±Ç°Óû§ºÍÊý¾Ý¿â½¨Á¢µÄÁ¬½ÓÒѵ½´ïÊý¾Ý¿âµÄ×î´óÁ¬½ÓÊý£¬ÇëÔö´ó¿ÉÓõÄÊý¾Ý¿âÁ¬½ÓÊý»òÖØÆôÊý¾Ý¿â
1205£º¼ÓËø³¬Ê±
1211£ºµ±Ç°Óû§Ã»Óд´½¨Óû§µÄȨÏÞ
1216£ºÍâ¼üÔ¼Êø¼ì²éʧ°Ü£¬¸üÐÂ×Ó±í¼Ç¼ʧ°Ü
1217£ºÍâ¼üÔ¼Êø¼ì²éʧ°Ü£¬É¾³ý»òÐÞ¸ÄÖ÷±í¼Ç¼ʧ°Ü
1226£ºµ±Ç°Óû§Ê¹ÓõÄ×ÊÔ´Òѳ¬¹ýËùÔÊÐíµÄ×


Ïà¹ØÎĵµ£º

ubuntuϸü¸ÄmysqlĬÈϱàÂë(×Ö·û¼¯)

 
°²×°mysql
sudo apt-get install mysql-server #Ö±½Ó×Ô¶¯»ñµÃ¿ÉÓð汾
Ò²¿ÉÒÔÕâÑùд
sudo apt-get install mysql-server-5.0 #°²×°mysql·þÎñÆ÷5.0°æ±¾
°²×°ºó
/etc/init.d/mysql start (stop) ΪÆô¶¯ºÍÍ£Ö¹·þÎñÆ÷
/etc/mysql/ Ö÷ÒªÅäÖÃÎļþËùÔÚλÖà my.cnf
/var/lib/mysql/ ·ÅÖõÄÊÇÊý¾Ý¿â±íÎļþ¼Ð£¬ÕâÀïµÄm ......

linux mysql php apache ÅäÖð²×°

 ¡¡ÎÒÃÇ°ÑÏÂÔصÄÈý¸öÈí¼þ°ü·Åµ½/var/localĿ¼Ï£¨ÕâÊDZÊÕ߸öÈ˵ÄÏ°¹ß£©£¬ËüÃǶ¼ÊÇtar.gz°ü£¬¿ÉÒÔÓÃÃüÁîtar -xzpvf °üÃû£¬°ÑËüÃÇÔÚµ±Ç°Ä¿Â¼£¨/var/local/£©Öн⿪£º
cd /var/local
tar -xzpvf mysql-4.0.15.tar.gz
tar -xzpvf php-4.3.3.tar.gz
tar -xzpvf httpd-2.0.47.tar.gz
¡¡¡¡½â°üºó¿ÉÒÔ¿ªÊ¼½øÈëÕýʽ°²×°¡£ ......

ÈçºÎÖ´ÐÐÒ»¸ömysqlµÄsql½Å±¾Îļþ


2009-12-08 18:53
sql½Å±¾ÊÇ°üº¬Ò»µ½¶à¸ösqlÃüÁîµÄsqlÓï¾ä£¬ÎÒÃÇ¿ÉÒÔ½«ÕâЩsql½Å±¾·ÅÔÚÒ»¸öÎı¾ÎļþÖУ¨ÎÒÃdzÆ֮Ϊ“sql½Å±¾Îļþ”£©£¬È»ºóͨ¹ýÏà¹ØµÄÃüÁîÖ´ÐÐÕâ¸ösql½Å±¾Îļþ¡£»ù±¾²½ÖèÈçÏ£º
1¡¢´´½¨°üº¬sqlÃüÁîµÄsql½Å±¾Îļþ
ÎļþÖаüº¬Ò»Ð©ÁеÄsqlÓï¾ä£¬Ã¿ÌõÓï¾ä×îºóÒÔ;½á⣬ÎļþÄÚÈÝʾÀýÈçÏ£º
--´´½ ......

mysqlÆô¶¯ºÍ¹Ø±ÕÔ¼ÊøµÄ·½·¨(FOREIGN_KEY_CHECKS)


mysqlÆô¶¯ºÍ¹Ø±ÕÔ¼ÊøµÄ·½·¨(FOREIGN_KEY_CHECKS)
2009-07-06 16:43
MySQL»¹Ô­Êý¾Ý¿â£¬½ûÓúÍÆôÓÃÍâ¼üÔ¼ÊøµÄ·½·¨(FOREIGN_KEY_CHECKS)
ÓÐʱ»¹Ô­Êý¾Ý¿âʱ£¬ÒòΪ±íÓÐÔ¼Êøµ¼ÖÂ40014´íÎ󣬿ÉÒÔͨ¹ý¹Ø±ÕÍâ¼üÔ¼Êø£¬»¹Ô­³É¹¦Ê±ÔÙÆôÓÃ
½ûÓÃ
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0
ÆôÓÃ
S ......

MySQLÖÐÓÃselectʵÏÖTOP N¹¦ÄÜ ¼°·ÖÒ³


MySQLÖÐÓÃselectʵÏÖTOP N¹¦ÄÜ
ÏÈ˵¼¸¸ö¹Ø¼ü×Ö£º
distinct ·µ»Ø²»Öظ´µÄ¶àÁÐ
count() ¼ÆÊý
limit m,n µÚm¸öÆðn¸ö
 
ÄÇô£¬Èç¹ûÐèÒª²éÕÒÃûΪcolµÄijһ¸öÁеÄTop N£¬²¢Áгö¶ÔÓ¦µÄÖµµÄselectÓï¾ä¾ÍÈçÏ£º
select dinstinct(col),count(col) from tablename group by 1 order  ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ