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

ʹÓÃÅú´¦ÀíºÍLOADµ¼ÈëÊý¾Ýµ½MySQLÊý¾Ý¿â

    ǰһƪÎÄÕÂÖÐ˵µ½ÁËLOADÃüÁÕâÀï¾ÍÀ´ÏêϸµÄ¸ø×Ô¼º£¬Ë³±ãÒ²¸ø´ó¼Ò½²½âÏÂLOADÃüÁîºÍÅú´¦ÀíµÄÊý¾Ýµ¼È빦ÄÜ¡£ÓõÄʱºò¸Ð¾õMySQLÓÃÆðÀ´ÕæµÄ±È½Ï×ÌÈ󡣡£¡£¡£
         Åú´¦Àíµ¼ÈëÎļþ£¬´ÓsqlÎļþµ¼ÈëÊý¾Ýµ½Êý¾Ý¿âÖÐ £¬Åú´¦ÀíÊÇÒ»Öַǽ»»¥Ê½ÔËÐÐmysql³ÌÐòµÄ·½·¨£¬ÈçͬÄúÔÚmysqlÖÐʹÓõÄÃüÁîÒ»Ñù£¬ÄãÈÔÈ»½«Ê¹ÓÃÕâЩÃüÁî¡£ 
        ΪÁËʵÏÖÅú´¦Àí£¬ÄúÖض¨ÏòÒ»¸öÎļþµ½mysql³ÌÐòÖУ¬Ê×ÏÈÎÒÃÇÐèÒªÒ»¸öÎı¾Îļþ£¬Õâ¸öÎı¾Îļþ°üº¬ÓÐÓëÎÒÃÇÔÚmysqlÖÐÊäÈëµÄÃüÁîÏàͬµÄÎı¾¡£ 
        ±ÈÈçÎÒÃÇÒª²åÈëһЩÊý¾Ý£¬Ê¹Óðüº¬ÏÂÃæÎı¾µÄÎļþ(ÎļþÃûΪNew_Data.sql,µ±È»ÎÒÃÇÒ²¿ÉÒÔÈ¡ÃûΪNew_Data.txt¼°ÈκÎÆäËûµÄºÏ·¨Ãû×Ö£¬²¢²»Ò»¶¨ÒªÒÔºó׺sql½áβ)£º
USE Meet_A_Geek;
INSERT INTO Customers (Customer_ID, Last_Name) VALUES(NULL, "Block");
INSERT INTO Customers (Customer_ID, Last_Name) VALUES(NULL, "Newton");
INSERT INTO Customers (Customer_ID, Last_Name) VALUES(NULL, "Simmons"); 
        ×¢ÒâÉÏÃæµÄÕâЩ¾ä×ÓµÄÓï·¨¶¼±ØÐëÊÇÕýÈ·µÄ£¬²¢ÇÒÿ¸ö¾ä×ÓÒԷֺŽáÊø¡£ ÉÏÃæµÄUSEÃüÁîÑ¡ÔñÊý¾Ý¿â£¬INSERTÃüÁî²åÈëÊý¾Ý¡£ 
        ÏÂÃæÎÒÃÇÒª°ÑÉÏÃæµÄÎļþµ¼Èëµ½Êý¾Ý¿âÖУ¬µ¼Èë֮ǰҪȷÈÏÊý¾Ý¿âÒѾ­ÔÚÔËÐУ¬¼´ÊÇmysqld½ø³Ì£¨»òÕß˵·þÎñ£¬Windows NTÏÂÃæ³ÆΪ”·þÎñ“£¬unixÏÂÃæΪ”½ø³Ì“£©ÒѾ­ÔÚÔËÐС£
È»ºóÔËÐÐÏÂÃæµÄÃüÁ
bin/mysql –p < /home/mark/New_Data.sql
½Ó×Å°´ÌáʾÊäÈëÃÜÂ룬Èç¹ûÉÏÃæµÄÎļþÖеÄÓï¾äûÓдíÎó£¬ÄÇôÕâЩÊý¾Ý¾Í±»µ¼Èëµ½ÁËÊý¾Ý¿âÖС£
ÔÚÃüÁîÐÐÖÐʹÓÃLOAD DATA INFILE ´ÓÎļþÖе¼ÈëÊý¾Ýµ½Êý¾Ý¿â:
       ÏÖÔÚÄú¿ÉÄÜ»áÎÊ×Ô¼º£¬"¾¿¾¹ÎªÊ²Ã´ÎÒÒªÊäÈëËùÓеÄÕâЩSQLÓï¾äµ½ÎļþÖУ¬È»ºóͨ¹ý³ÌÐòÔËÐÐËüÃÇÄØ£¿” ÕâÑù¿´ÆðÀ´ºÃÏñÐèÒª´óÁ¿µÄ¹¤×÷¡£ºÜºÃ£¬ÄãÕâÑùÏëºÜ¿ÉÄܾͶÔÁË¡£µ«ÊǼÙÈçÄãÓдÓËùÓÐÕâЩÃüÁîÖвúÉúµÄlog¼Ç¼ÄØ£¿ÏÖÔÚÕâÑù¾ÍºÜ°ô£¬àÅ£¬´ó¶àÊýÊý¾Ý¿â¶¼»á×Ô¶¯²úÉúÊý¾Ý¿âÖеÄʼþ¼Ç¼µÄlog¡£¶ø´ó²¿·Ölog¶¼°üº¬ÓÐÓùýµÄԭʼµÄSQLÃüÁî¡£Òò´Ë£¬Èç¹ûÄú²»ÄÜ´ÓÄúÏÖÔÚµÄÊý¾Ý¿âÖе¼³öÊý¾Ýµ½ÐµÄmysqlÊý¾Ý¿âÖÐʹÓã¬ÄÇÃ


Ïà¹ØÎĵµ£º

linuxϵͳµÄ°²×°(redhat7.2)+jsp»·¾³+mysql+°²È«ÉèÖÃ

 1 1 Linux Red Hat 7.2 °²×°
¡¡¡¡Red Hat Linux 7.2µÄ°²×°¹âÅ̹²ÓÐÁ½ÕÅ£ºµÚÒ»ÕÅ¿ÉÒÔÖ±½Ó´Ó¹âÅÌÆô¶¯£¬°üº¬Á˴󲿷ֵÄÈí¼þ°üºÍһЩ°²×°¹¤¾ß£»µÚ¶þÕŹâÅ̳ýÁ˸½¼ÓµÄÈí¼þ°üÍ⣬Ö÷ÒªÊÇÔ´Âë¡¢Ô¤ÀÀ°æÈí¼þµÈ¡£
¡¡¡¡Red Hat Linux 7.2µÄ°²×°½çÃæ·Ç³£ÓѺã¬×óÃæÓм´Ê±Ï꾡µÄ°ïÖúÐÅÏ¢£¬ÓÒÃæÊÇÑ¡ÏÍêÈ«Ö§³ÖÊó±ê²Ù×÷¡£
¡¡¡¡½« ......

MYSQLÃüÁת£©

µÚÒ»¡¢mysql·þÎñµÄÆô¶¯ºÍÍ£Ö¹
net stop mysql
net start mysql
µÚ¶þ¡¢µÇ½mysql
Óï·¨ÈçÏ£º mysql -uÓû§Ãû -pÓû§ÃÜÂë
¼üÈëÃüÁîmysql -uroot -p£¬ »Ø³µºóÌáʾÄãÊäÈëÃÜÂ룬ÊäÈë12345£¬È»ºó»Ø³µ¼´¿É½øÈëµ½mysqlÖÐÁË£¬mysqlµÄÌáʾ·ûÊÇ£º
mysql>
×¢Ò⣬Èç¹ûÊÇÁ¬½Óµ½ÁíÍâµÄ»úÆ÷ÉÏ£¬ÔòÐèÒª¼ÓÈëÒ»¸ö²ÎÊý-h»úÆ÷IP
µÚÈý¡ ......

TomCat6.0Êý¾Ý¿âÁ¬½Ó³ØÅäÖÃʵÀý(mysqlÊý¾Ý¿â)

TomCat6.0Êý¾Ý¿âÁ¬½Ó³ØÅäÖÃʵÀý(mysqlÊý¾Ý¿â)
TomCat6.0Êý¾Ý¿âÁ¬½Ó³ØÅäÖÃÓм¸ÖÖ·½Ê½£¬ÔÚÕâÀïÎÒÖ»½éÉÜÆäÖеÄÒ»ÖÖ¹©´ó¼Ò²Î¿¼£º
ÏÂÃæÎÒ°ÑÅäÖùý³Ì·Ö³ÉÈý¸ö²½ÖèÀ´Íê³É£º
µÚÒ»²½£ºÔÚÄã°²×°TomCatµÄĿ¼ÏÂÕÒµ½context.xmlÅäÖÃÎļþ¡££¨ÀýÈ磺D:\Tomcat 6.0\conf\context.xml£©È»ºó´ò¿ªcontext.xml£¬ÔÚ±êÇ©<context>< ......

Mysql±¸·Ý»¹Ô­µÄÒ»¸öbug

´Ómysql±¸·Ý³öÀ´µÄsqlÎļþ½øÐл¹Ô­²Ù×÷ʱ±¨´í£¬²é¿´´íÎóÈÕÖ¾£¬ÄÚÈÝÈçÏ£º
Error Code: 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=50913 DEFAULT CHARSET=gbk' at li ......

Êý¾Ý¿â»ù´¡£ºMySQL Ìí¼ÓÓû§µÄÁ½ÖÖ·½·¨

 
ÓÐ2¸ö²»Í¬µÄ·½·¨Ôö¼ÓÓû§£ºÍ¨¹ýʹÓÃGRANTÓï¾ä»òͨ¹ýÖ±½Ó²Ù×÷MySQLÊÚȨ±í¡£±È½ÏºÃµÄ·½·¨ÊÇʹÓÃGRANTÓï¾ä£¬ÒòΪËûÃÇÊǸü¼òÃ÷²¢ÇÒºÃÏñ´íÎóÉÙЩ¡£
 
ÏÂÃæµÄÀý×ÓÏÔʾ³öÈçºÎʹÓÃMySQL¿Í»§°²×°ÐÂÓû§¡£ÕâЩÀý×Ó¼Ù¶¨È¨ÏÞÒÑȱʡ±»°²×°¡£ÕâÒâζ
×ÅΪÁ˸ı䣬Äã±ØÐëÔÚMySQLÕýÔÚÔËÐÐͬһ̨»úÆ÷ÉÏ£¬Äã±ØÐë×÷ΪMySQL
ro ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ