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

mysql Êý¾Ýµ¼³öµÄÁ½ÖÖ·½Ê½

MySQLÓкܶà¿ÉÒÔµ¼ÈëÊý¾ÝµÄ·½·¨£¬È»¶øÕâЩֻÊÇÊý¾Ý´«ÊäÖеÄÒ»°ë£¬ÁíÍâµÄÒ»°ãÊÇ´ÓMySQLÊý¾Ý¿âÖе¼³öÊý¾Ý¡£ÓÐÐí¶àµÄÔ­ÒòÎÒÃÇÐèÒªµ¼³öÊý¾Ý¡£Ò»¸öÖØ
ÒªµÄÔ­ÒòÊÇÓÃÓÚ±¸·ÝÊý¾Ý¿â¡£Êý¾ÝµÄÔì¼Û³£³£ÊÇ°º¹óµÄ£¬ÐèÒª½÷É÷´¦ÀíËüÃÇ¡£¾­³£µØ±¸·Ý¿ÉÒÔ°ïÖú·ÀÖ¹±¦¹óÊý¾ÝµØ¶ªÊ§£»ÁíÍâÒ»¸öÔ­ÒòÊÇ£¬Ò²ÐíÄúÏ£Íûµ¼³öÊý¾ÝÀ´¹²
Ïí¡£ ÔÚÕâ¸öÐÅÏ¢¼¼Êõ²»¶Ï³É³¤µÄÊÀ½çÖУ¬¹²ÏíÊý¾Ý±äµÃÔ½À´Ô½³£¼û¡£
±È·½ËµMacmillan
USAά»¤»¤×ÅÒ»¸ö½«Òª³ö°æµÄÊé¼®µÄ´óÐÍÊý¾Ý¿â¡£Õâ¸öÊý¾Ý¿âÔÚÐí¶àÊéµêÖ®¼ä¹²Ïí£¬ÕâÑùËûÃǾÍÖªµÀÄÄЩÊ齫»áºÜ¿ì³ö°æ¡£Ò½ÔºÔ½À´Ô½×ßÏò²ÉÓÃÎÞÖ½²¡Àú¼Ç¼£¬Õâ
ÑùÕâЩ²¡Àú¿ÉÒÔËæʱ¸ú×ÅÄã¡£ÊÀ½ç±äµÃÔ½À´Ô½Ð¡£¬ÐÅÏ¢Ò²±»¹²ÏíµÃÔ½À´Ô½¶à¡£ÓкܶàÖе¼³öÊý¾ÝµÃ·½·¨£¬ËüÃǶ¼¸úµ¼ÈëÊý¾ÝºÜÏàËÆ¡£ÒòΪ£¬±Ï¾¹£¬ÕâЩ¶¼Ö»ÊÇÒ»ÖÖ͸
Êӵ÷½Ê½¡£´ÓÊý¾Ý¿âµ¼³öµÄÊý¾Ý¾ÍÊÇ´ÓÁíÒ»¶Ëµ¼ÈëµÄÊý¾Ý¡£ÕâÀïÎÒÃDz¢²»ÌÖÂÛÆäËûµÄÊý¾Ý¿â¸÷ÖÖ¸÷ÑùµÄµ¼³öÊý¾ÝµÄ·½·¨£¬Äú½«Ñ§»áÈçºÎÓÃMySQLÀ´ÊµÏÖÊý¾Ýµ¼
³ö¡£
¡¡¡¡
¡¡¡¡Ê¹ÓÃmysqldump:
¡¡¡¡
¡¡¡¡(mysqldumpÃüÁîλÓÚmysql/bin/Ŀ¼ÖÐ)
¡¡
¡¡mysqldump¹¤¾ßºÜ¶à·½ÃæÀàËÆÏà·´×÷ÓõŤ¾ßmysqlimport¡£ËüÃÇÓÐһЩͬÑùµÄÑ¡Ïî¡£µ«mysqldumpÄܹ»×ö¸ü¶àµÄÊÂÇé¡£Ëü¿ÉÒÔ°ÑÕû
¸öÊý¾Ý¿â×°Ôص½Ò»¸öµ¥¶ÀµÄÎı¾ÎļþÖС£Õâ¸öÎļþ°üº¬ÓÐËùÓÐÖؽ¨ÄúµÄÊý¾Ý¿âËùÐèÒªµÄSQLÃüÁî¡£Õâ¸öÃüÁîÈ¡µÃËùÓеÄģʽ£¨Schema£¬ºóÃæÓнâÊÍ£©²¢ÇÒ½«
Æäת»»³ÉDDLÓï·¨£¨CREATEÓï¾ä£¬¼´Êý¾Ý¿â¶¨ÒåÓï¾ä£©£¬È¡µÃËùÓеÄÊý¾Ý£¬²¢ÇÒ´ÓÕâЩÊý¾ÝÖд´½¨INSERTÓï¾ä¡£Õâ¸ö¹¤¾ß½«ÄúµÄÊý¾Ý¿âÖÐËùÓеÄÉè¼Æ
µ¹×ª¡£ÒòΪËùÓеĶ«Î÷¶¼±»°üº¬µ½ÁËÒ»¸öÎı¾ÎļþÖС£Õâ¸öÎı¾Îļþ¿ÉÒÔÓÃÒ»¸ö¼òµ¥µÄÅú´¦ÀíºÍÒ»¸öºÏÊÊSQLÓï¾äµ¼»Øµ½MySQLÖС£Õâ¸ö¹¤¾ßÁîÈËÄÑÒÔÖÃÐŵØ
¼òµ¥¶ø¿ìËÙ¡£¾ö²»»áÓаëµãÈÃÈËÍ·Ì۵صط½¡£
¡¡¡¡
¡¡¡¡Òò´Ë£¬Èç¹ûÄúÏñ×°ÔØÕû¸öÊý¾Ý¿âMeet_A_GeekµÄÄÚÈݵ½Ò»¸öÎļþÖУ¬¿ÉÒÔʹÓÃÏÂÃæµÄÃüÁ
¡¡¡¡bin/mysqldump –p Meet_A_Geek > MeetAGeek_Dump_File.txt
¡¡¡¡
¡¡¡¡Õâ¸öÓï¾äÒ²ÔÊÐíÄúÖ¸¶¨Ò»¸ö±í½øÐÐdump(±¸·Ý/µ¼³ö/×°ÔØ?)¡£Èç¹ûÄúÖ»ÊÇÏ£Íû°ÑÊý¾Ý¿âMeet_A_GeekÖеıíOrdersÖеÄÕû¸öÄÚÈݵ¼³öµ½Ò»¸öÎļþ£¬¿ÉÒÔʹÓÃÏÂÃæµÄÃüÁ
¡¡¡¡bin/mysqldump –p Meet_A_Geek Orders >MeetAGeek_Orders.txt
¡¡¡¡
¡¡¡¡Õâ¸ö·Ç³£µÄÁé»î£¬ÄúÉõÖÁ¿ÉÒÔʹÓÃWHERE´Ó¾äÀ´Ñ¡ÔñÄúÐèÒªµÄ¼Ç¼µ¼³öµ½ÎļþÖС£Òª´ïµ½ÕâÑùµÄÄ¿µÄ£¬¿ÉÒÔʹÓÃÀàËÆÓÚÏÂÃæµÄÃüÁ
¡¡¡¡bin/mysqldump –p –w


Ïà¹ØÎĵµ£º

jsp—MySqlÖÆ×÷B/sµÇ½µÄºÃÀý×Ó Ñ§Ï°±Ê¼Ç

½¨Á¢Ìõ¼þÊ×ÏÈÒ»¶¨ÒªÈ·¶¨×Ô¼ºµÄmysql£¬tomcat,eclipseÁ¬½ÓÊÇÕýÈ·µÄ¡£
index.jspºÜ¼òµ¥£¬¾ÍÒ»¸öÌøת¡£
<%
response.sendRedirect("lg.jsp");
%>
lg.jsp ʵÏֵǼ¿ò¼Ü
<%@ page contentType="text/html; charset=utf-8" %>
<html>
<head>
<title>
login
</title>
</hea ......

MySQL£ºGrant Óï·¨Ïê½â£¨MySQL 5.X£©


±¾ÎÄʵÀý£¬ÔËÐÐÓÚ MySQL 5.0 ¼°ÒÔÉÏ°æ±¾¡£
MySQL ¸³ÓèÓû§È¨ÏÞÃüÁîµÄ¼òµ¥¸ñʽ¿É¸ÅÀ¨Îª£º
grant ȨÏÞ on Êý¾Ý¿â¶ÔÏó to Óû§
Ò»¡¢grant ÆÕͨÊý¾ÝÓû§£¬²éѯ¡¢²åÈë¡¢¸üС¢É¾³ý Êý¾Ý¿âÖÐËùÓбíÊý¾ÝµÄȨÀû¡£
grant select on testdb.* to common_user@'%'
grant insert on testdb.* to common_user@'%'
grant update o ......

Íü¼ÇÁËMySQLµÄrootÃÜÂëÓ¦µ±ÈçºÎÈ¡»Ø

ÎÊ£ºÈç¹ûÍü¼ÇÁËMySQLµÄrootÃÜÂëÓ¦µ±ÈçºÎÈ¡»Ø£¿
´ð£º½â¾ö·½·¨ÈçÏ£º
·¨1£ºÔÚmy.cnfµÄ[mysqld]×ֶμÓÈ룺
skip-grant-tables
È»ºóÖØÆôÄãµÄmysqld,ÕâÑù¾ÃûÓÐÃÜÂëÁË.
È»ºó½øÈëmysql¡£
UPDATE mysql.user SET Password=PASSWORD
('password') WHERE User='root';
³É¹¦ºó
FLUSH PRIVILEGES;
×îºóÈ¥µômy.cnfÖеÄs ......

MySQL×Ö·û´®´¦Àíϵͳ

ÒÔÏÂÊÇÍêÕûµÄÀý×Ó¡£
1¡¢Ð½¨±í
#title: ×Ô¶¨Òå×Ö·û
#auther: Ð¡Ç¿(Õ¼²·Ê¦) 
#date: 
2008
-
01
-08
drop
 
table
 
if
 
exists
 Category;
create
 
table
 Category
(
   cateId       &nbs ......

[ת]Mysql Sourceµ¼ÈëÂÒÂëÎÊÌâ

      1¡¢È·¶¨Êý¾Ý¿âĬÈϱàÂ룬±ÈÈç±àÂëΪutf8,½«¶ÁÈë;¾¶±àÂëͬÑùÉèΪutf8£¬ÃüÁîΪ£ºset names utf8;
      2¡¢source d:/20080613.sql µ¼ÈëÊý¾Ý¡£ÑéÖ¤Êý¾Ý¿âÖеÄÊý¾ÝÊÇ·ñ´æÔÚÂÒÂë¡£
      3¡¢Èç¹ûÈÔÈ»´æÔÚÂÒÂëÎÊÌ⣬Õâʱºò¾ÍÒª¿¼ÂǸı䵼ÈëÎļþµÄ±à ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ