锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲乱妇熟女爽到高潮的片,亚洲精品V欧洲精品V日韩精品,亚洲欧美成人综合久久久http://www.tkk7.com/libin2722/category/40888.html铏氬叾蹇冿紝鍙В澶╀笅涔嬮棶錛涗笓鍏跺績錛屽彲娌誨ぉ涓嬩箣瀛︼紱闈欏叾蹇冿紝鍙偀澶╀笅涔嬬悊錛涙亽鍏跺績錛屽彲鎴愬ぉ涓嬩箣涓氥?/description>zh-cnFri, 18 Sep 2015 21:04:01 GMTFri, 18 Sep 2015 21:04:01 GMT60MySQL瀵煎叆.sql鏂囦歡鍙婂父鐢ㄥ懡浠?/title><link>http://www.tkk7.com/libin2722/articles/427346.html</link><dc:creator>紺肩墿</dc:creator><author>紺肩墿</author><pubDate>Wed, 16 Sep 2015 00:49:00 GMT</pubDate><guid>http://www.tkk7.com/libin2722/articles/427346.html</guid><wfw:comment>http://www.tkk7.com/libin2722/comments/427346.html</wfw:comment><comments>http://www.tkk7.com/libin2722/articles/427346.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/libin2722/comments/commentRss/427346.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/libin2722/services/trackbacks/427346.html</trackback:ping><description><![CDATA[ <p style="margin: 0px; padding: 0px; color: rgb(0, 0, 0); font-family: Arial; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-indent: 2em; background-color: rgb(255, 255, 255);"> <strong> <em> <span style="font-size: large;"> <span style="color: rgb(255, 0, 0);">MySQL瀵煎叆.sql鏂囦歡鍙婂父鐢ㄥ懡浠?/span> </span> </em> </strong> </p> <table style="color: rgb(0, 0, 0); font-family: Arial; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);" border="0"> <tbody> <tr> <td> <p style="margin: 0px; padding: 0px;"> <span style="color: rgb(0, 0, 0);"> </span> </p> <p style="margin: 0px; padding: 0px; text-indent: 2em;"> <span style="color: rgb(0, 0, 0);"> <span style="background-color: rgb(255, 255, 255);">鍦∕ySQL Qurey聽聽 Brower涓洿鎺ュ鍏?.sql鑴氭湰錛屾槸涓嶈兘涓嬈℃墽琛屽鏉ql鍛戒護鐨勶紝鍦╩ysql涓墽琛宻ql鏂囦歡鐨勫懡浠わ細</span> </span> </p> <p style="margin: 0px; padding: 0px; text-indent: 2em;"> <span style="color: rgb(0, 0, 0);"> <span style="background-color: rgb(255, 255, 255);">mysql> source聽聽 d:/myprogram/database/db.sql;</span> </span> </p> <p style="margin: 0px; padding: 0px; text-indent: 2em;"> <span style="color: rgb(0, 0, 0);"> <span style="background-color: rgb(255, 255, 255);">鍙﹂檮mysql甯哥敤鍛戒護錛?/span> </span> </p> <p style="margin: 0px; padding: 0px; text-indent: 2em;"> <span style="color: rgb(0, 0, 0);"> <span style="background-color: rgb(255, 255, 255);">涓) 榪炴帴MYSQL錛?/span> </span> </p> <p style="margin: 0px; padding: 0px; text-indent: 2em;"> <span style="color: rgb(0, 0, 0);"> <span style="background-color: rgb(255, 255, 255);">聽聽聽 鏍煎紡錛?mysql -h涓繪満鍦板潃 -u鐢ㄦ埛鍚?錛峱鐢ㄦ埛瀵嗙爜</span> </span> </p> <p style="margin: 0px; padding: 0px; text-indent: 2em;"> <span style="color: rgb(0, 0, 0);"> <span style="background-color: rgb(255, 255, 255);">1銆佷緥1錛氳繛鎺ュ埌鏈満涓婄殑MYSQL</span> </span> </p> <p style="margin: 0px; padding: 0px; text-indent: 2em;"> <span style="color: rgb(0, 0, 0);"> <span style="background-color: rgb(255, 255, 255);">聽聽聽 棣栧厛鍦ㄦ墦寮DOS紿楀彛錛岀劧鍚庤繘鍏ysql瀹夎鐩綍涓嬬殑bin鐩綍涓嬶紝渚嬪錛?D:/mysql/bin錛屽啀閿叆鍛戒護mysql -uroot -p錛屽洖杞﹀悗鎻愮ず浣犺緭瀵嗙爜錛屽鏋滃垰瀹夎濂組YSQL錛岃秴綰х敤鎴穜oot鏄病鏈夊瘑鐮佺殑錛屾晠鐩存帴鍥炶濺鍗沖彲榪涘叆鍒癕YSQL涓簡錛孧YSQL鐨勬彁紺虹鏄細mysql></span> </span> </p> <p style="margin: 0px; padding: 0px; text-indent: 2em;"> <span style="color: rgb(0, 0, 0);"> <span style="background-color: rgb(255, 255, 255);">2銆佷緥2錛氳繛鎺ュ埌榪滅▼涓繪満涓婄殑MYSQL (榪滅▼錛欼P鍦板潃)</span> </span> </p> <p style="margin: 0px; padding: 0px; text-indent: 2em;"> <span style="color: rgb(0, 0, 0);"> <span style="background-color: rgb(255, 255, 255);">聽聽聽 鍋囪榪滅▼涓繪満鐨処P涓猴細10.0.0.1錛岀敤鎴峰悕涓簉oot,瀵嗙爜涓?23銆傚垯閿叆浠ヤ笅鍛戒護錛?/span> </span> </p> <p style="margin: 0px; padding: 0px; text-indent: 2em;"> <span style="color: rgb(0, 0, 0);"> <span style="background-color: rgb(255, 255, 255);">聽聽 mysql -h10.0.0.1 -uroot -p123</span> </span> </p> <p style="margin: 0px; padding: 0px; text-indent: 2em;"> <span style="color: rgb(0, 0, 0);"> <span style="background-color: rgb(255, 255, 255);">聽聽 錛堟敞錛歶涓巖oot鍙互涓嶇敤鍔犵┖鏍鹼紝鍏跺畠涔熶竴鏍鳳級</span> </span> </p> <p style="margin: 0px; padding: 0px; text-indent: 2em;"> <span style="color: rgb(0, 0, 0);"> <span style="background-color: rgb(255, 255, 255);">3銆侀鍑篗YSQL鍛戒護</span> </span> </p> <p style="margin: 0px; padding: 0px; text-indent: 2em;"> <span style="color: rgb(0, 0, 0);"> <span style="background-color: rgb(255, 255, 255);">聽聽聽 exit 錛堝洖杞︼級</span> </span> </p> <p style="margin: 0px; padding: 0px; text-indent: 2em;"> <span style="color: rgb(0, 0, 0);"> <span style="background-color: rgb(255, 255, 255);">(浜? 淇敼瀵嗙爜錛?/span> </span> </p> <p style="margin: 0px; padding: 0px; text-indent: 2em;"> <span style="color: rgb(0, 0, 0);"> <span style="background-color: rgb(255, 255, 255);">聽聽聽 鏍煎紡錛歮ysqladmin -u鐢ㄦ埛鍚?-p鏃у瘑鐮?password 鏂板瘑鐮?/span> </span> </p> <p style="margin: 0px; padding: 0px; text-indent: 2em;"> <span style="color: rgb(0, 0, 0);"> <span style="background-color: rgb(255, 255, 255);">1銆佷緥1錛氱粰root鍔犱釜瀵嗙爜123銆傞鍏堝湪DOS涓嬭繘鍏ョ洰褰旵:/mysql/bin錛岀劧鍚庨敭鍏ヤ互涓嬪懡浠わ細</span> </span> </p> <p style="margin: 0px; padding: 0px; text-indent: 2em;"> <span style="color: rgb(0, 0, 0);"> <span style="background-color: rgb(255, 255, 255);">聽聽聽 mysqladmin -uroot -password 123</span> </span> </p> <p style="margin: 0px; padding: 0px; text-indent: 2em;"> <span style="color: rgb(0, 0, 0);"> <span style="background-color: rgb(255, 255, 255);">聽聽聽 娉細鍥犱負寮濮嬫椂root娌℃湁瀵嗙爜錛屾墍浠?p鏃у瘑鐮佷竴欏瑰氨鍙互鐪佺暐浜嗐?/span> </span> </p> <p style="margin: 0px; padding: 0px; text-indent: 2em;"> <span style="color: rgb(0, 0, 0);"> <span style="background-color: rgb(255, 255, 255);">2銆佷緥2錛氬啀灝唕oot鐨勫瘑鐮佹敼涓?56</span> </span> </p> <p style="margin: 0px; padding: 0px; text-indent: 2em;"> <span style="color: rgb(0, 0, 0);"> <span style="background-color: rgb(255, 255, 255);">聽聽聽 mysqladmin -uroot -pab12 password 456</span> </span> </p> <p style="margin: 0px; padding: 0px; text-indent: 2em;"> <span style="color: rgb(0, 0, 0);"> <span style="background-color: rgb(255, 255, 255);">(涓? 澧炲姞鏂扮敤鎴鳳細錛堟敞鎰忥細鍜屼笂闈笉鍚岋紝涓嬮潰鐨勫洜涓烘槸MYSQL鐜涓殑鍛戒護錛屾墍浠ュ悗闈㈤兘甯︿竴涓垎鍙蜂綔涓哄懡浠ょ粨鏉熺錛?/span> </span> </p> <p style="margin: 0px; padding: 0px; text-indent: 2em;"> <span style="color: rgb(0, 0, 0);"> <span style="background-color: rgb(255, 255, 255);">聽聽聽 鏍煎紡錛歡rant select on 鏁版嵁搴?* to 鐢ㄦ埛鍚岪鐧誨綍涓繪満 identified by "瀵嗙爜"</span> </span> </p> <p style="margin: 0px; padding: 0px; text-indent: 2em;"> <span style="color: rgb(0, 0, 0);"> <span style="background-color: rgb(255, 255, 255);">聽聽聽 渚?銆佸鍔犱竴涓敤鎴穞est1瀵嗙爜涓篴bc錛岃浠栧彲浠ュ湪浠諱綍涓繪満涓婄櫥褰曪紝騫跺鎵鏈夋暟鎹簱鏈夋煡璇€佹彃鍏ャ佷慨鏀廣佸垹闄ょ殑鏉冮檺銆傞鍏堢敤浠oot鐢ㄦ埛榪炲叆MYSQL錛岀劧鍚庨敭鍏ヤ互涓嬪懡浠わ細聽聽聽聽 grant select,insert,update,delete on *.* to<span id="go4eiuc" class="Apple-converted-space">聽</span></span> </span> <a href="mailto:test2@localhost" style="color: rgb(202, 0, 0); text-decoration: none;"> <span style="color: rgb(0, 0, 0);"> <span style="background-color: rgb(255, 255, 255);">test2@localhost</span> </span> </a> <span style="color: rgb(0, 0, 0);"> <span style="background-color: rgb(255, 255, 255);"> <span id="8om6s44" class="Apple-converted-space">聽</span>identified by "abc";</span> </span> </p> <p style="margin: 0px; padding: 0px; text-indent: 2em;"> <span style="color: rgb(0, 0, 0);"> <span style="background-color: rgb(255, 255, 255);">聽聽聽 濡傛灉浣犱笉鎯硉est2鏈夊瘑鐮侊紝鍙互鍐嶆墦涓涓懡浠ゅ皢瀵嗙爜娑堟帀銆偮犅犅犅?grant select,insert,update,delete on mydb.* to<span id="cg6u84i" class="Apple-converted-space">聽</span></span> </span> <a href="mailto:test2@localhost" style="color: rgb(202, 0, 0); text-decoration: none;"> <span style="color: rgb(0, 0, 0);"> <span style="background-color: rgb(255, 255, 255);">test2@localhost</span> </span> </a> <span style="color: rgb(0, 0, 0);"> <span style="background-color: rgb(255, 255, 255);"> <span id="4yqu644" class="Apple-converted-space">聽</span>identified by "";</span> </span> </p> <p style="margin: 0px; padding: 0px; text-indent: 2em;"> <span style="color: rgb(0, 0, 0);"> <span style="background-color: rgb(255, 255, 255);">(鍥? 鏄劇ず鍛戒護</span> </span> </p> <p style="margin: 0px; padding: 0px; text-indent: 2em;"> <span style="color: rgb(0, 0, 0);"> <span style="background-color: rgb(255, 255, 255);">1銆佹樉紺烘暟鎹簱鍒楄〃錛?/span> </span> </p> <p style="margin: 0px; padding: 0px; text-indent: 2em;"> <span style="color: rgb(0, 0, 0);"> <span style="background-color: rgb(255, 255, 255);">聽聽聽 show databases;聽聽聽聽 鍒氬紑濮嬫椂鎵嶄袱涓暟鎹簱錛歮ysql鍜宼est銆俶ysql搴撳緢閲嶈瀹冮噷闈㈡湁MYSQL鐨勭郴緇熶俊鎭紝鎴戜滑鏀瑰瘑鐮佸拰鏂板鐢ㄦ埛錛屽疄闄呬笂灝辨槸鐢ㄨ繖涓簱榪涜鎿嶄綔銆?/span> </span> </p> <p style="margin: 0px; padding: 0px; text-indent: 2em;"> <span style="color: rgb(0, 0, 0);"> <span style="background-color: rgb(255, 255, 255);">2銆佹樉紺哄簱涓殑鏁版嵁琛細</span> </span> </p> <p style="margin: 0px; padding: 0px; text-indent: 2em;"> <span style="color: rgb(0, 0, 0);"> <span style="background-color: rgb(255, 255, 255);">聽聽聽 use mysql錛?//鎵撳紑搴撀犅犅?show tables;</span> </span> </p> <p style="margin: 0px; padding: 0px; text-indent: 2em;"> <span style="color: rgb(0, 0, 0);"> <span style="background-color: rgb(255, 255, 255);">3銆佹樉紺烘暟鎹〃鐨勭粨鏋勶細</span> </span> </p> <p style="margin: 0px; padding: 0px; text-indent: 2em;"> <span style="color: rgb(0, 0, 0);"> <span style="background-color: rgb(255, 255, 255);">聽聽聽 describe 琛ㄥ悕;</span> </span> </p> <p style="margin: 0px; padding: 0px; text-indent: 2em;"> <span style="color: rgb(0, 0, 0);"> <span style="background-color: rgb(255, 255, 255);">4銆佸緩搴擄細</span> </span> </p> <p style="margin: 0px; padding: 0px; text-indent: 2em;"> <span style="color: rgb(0, 0, 0);"> <span style="background-color: rgb(255, 255, 255);">聽聽聽 create database 搴撳悕;</span> </span> </p> <p style="margin: 0px; padding: 0px; text-indent: 2em;"> <span style="color: rgb(0, 0, 0);"> <span style="background-color: rgb(255, 255, 255);">5銆佸緩琛細</span> </span> </p> <p style="margin: 0px; padding: 0px; text-indent: 2em;"> <span style="color: rgb(0, 0, 0);"> <span style="background-color: rgb(255, 255, 255);">聽聽聽 use 搴撳悕錛浡犅犅犅?create table 琛ㄥ悕 (瀛楁璁懼畾鍒楄〃)錛?/span> </span> </p> <p style="margin: 0px; padding: 0px; text-indent: 2em;"> <span style="color: rgb(0, 0, 0);"> <span style="background-color: rgb(255, 255, 255);">6銆佸垹搴撳拰鍒犺〃:</span> </span> </p> <p style="margin: 0px; padding: 0px; text-indent: 2em;"> <span style="color: rgb(0, 0, 0);"> <span style="background-color: rgb(255, 255, 255);">聽聽聽 drop database 搴撳悕;聽聽聽聽 drop table 琛ㄥ悕錛?/span> </span> </p> <p style="margin: 0px; padding: 0px; text-indent: 2em;"> <span style="color: rgb(0, 0, 0);"> <span style="background-color: rgb(255, 255, 255);">7銆佸皢琛ㄤ腑璁板綍娓呯┖錛?/span> </span> </p> <p style="margin: 0px; padding: 0px; text-indent: 2em;"> <span style="color: rgb(0, 0, 0);"> <span style="background-color: rgb(255, 255, 255);">聽聽聽 delete from 琛ㄥ悕;</span> </span> </p> <p style="margin: 0px; padding: 0px; text-indent: 2em;"> <span style="color: rgb(0, 0, 0);"> <span style="background-color: rgb(255, 255, 255);">8銆佹樉紺鴻〃涓殑璁板綍錛?/span> </span> </p> <p style="margin: 0px; padding: 0px; text-indent: 2em;"> <span style="color: rgb(0, 0, 0);"> <span style="background-color: rgb(255, 255, 255);">聽聽聽 select * from 琛ㄥ悕;</span> </span> </p> <p style="margin: 0px; padding: 0px; text-indent: 2em;"> <span style="color: rgb(0, 0, 0);"> <span style="background-color: rgb(255, 255, 255);">瀵煎嚭sql鑴氭湰</span> </span> </p> <p style="margin: 0px; padding: 0px; text-indent: 2em;"> <span style="color: rgb(0, 0, 255);"> <span style="color: rgb(0, 0, 0);"> </span> </span> </p> <p style="margin: 0px; padding: 0px; text-indent: 2em;"> <span style="color: rgb(0, 0, 0);"> <span style="background-color: rgb(255, 255, 255);">mysqldump -u 鐢ㄦ埛鍚?-p 鏁版嵁搴撳悕 > 瀛樻斁浣嶇疆</span> </span> </p> <p style="margin: 0px; padding: 0px; text-indent: 2em;"> <span style="color: rgb(0, 0, 0);"> <span style="background-color: rgb(255, 255, 255);">mysqldump -u root -p test > c:/a.sql</span> </span> </p> <p style="margin: 0px; padding: 0px; text-indent: 2em;"> <span style="color: rgb(0, 0, 255);"> <span style="color: rgb(0, 0, 0);"> </span> </span> </p> <p style="margin: 0px; padding: 0px; text-indent: 2em;"> <span style="color: rgb(0, 0, 0);"> <span style="background-color: rgb(255, 255, 255);">瀵煎叆sql鑴氭湰</span> </span> </p> <p style="margin: 0px; padding: 0px; text-indent: 2em;"> <span style="color: rgb(0, 0, 255);"> <span style="color: rgb(0, 0, 0);"> </span> </span> </p> <p style="margin: 0px; padding: 0px; text-indent: 2em;"> <span style="color: rgb(0, 0, 0);"> <span style="background-color: rgb(255, 255, 255);">mysql -u 鐢ㄦ埛鍚?-p 鏁版嵁搴撳悕 < 瀛樻斁浣嶇疆</span> </span> </p> <p style="margin: 0px; padding: 0px; text-indent: 2em;"> <span style="color: rgb(0, 0, 0);"> <span style="background-color: rgb(255, 255, 255);">mysqljump -u root -p test < c:/a.sql</span> </span> </p> <p style="margin: 0px; padding: 0px; text-indent: 2em;"> <span style="color: rgb(0, 0, 255);"> <span style="color: rgb(0, 0, 0);"> </span> </span> </p> <p style="margin: 0px; padding: 0px; text-indent: 2em;"> <span style="color: rgb(0, 0, 0);"> <span style="background-color: rgb(255, 255, 255);">娉ㄦ剰,test鏁版嵁搴撳繀欏誨凡緇忓瓨鍦?/span> </span> </p> <p style="margin: 0px; padding: 0px; text-indent: 2em;"> <span style="color: rgb(0, 0, 0);"> <span style="background-color: rgb(255, 255, 255);">MySQL瀵煎嚭瀵煎叆鍛戒護鐨勭敤渚?/span> </span> </p> <p style="margin: 0px; padding: 0px; text-indent: 2em;"> <span style="color: rgb(0, 0, 0);"> <span style="background-color: rgb(255, 255, 255);">1.瀵煎嚭鏁翠釜鏁版嵁搴?/span> </span> </p> <p style="margin: 0px; padding: 0px; text-indent: 2em;"> <span style="color: rgb(0, 0, 255);"> <span style="color: rgb(0, 0, 0);"> </span> </span> </p> <p style="margin: 0px; padding: 0px; text-indent: 2em;"> <span style="color: rgb(0, 0, 0);"> <span style="background-color: rgb(255, 255, 255);">mysqldump -u 鐢ㄦ埛鍚?-p 鏁版嵁搴撳悕 > 瀵煎嚭鐨勬枃浠跺悕</span> </span> </p> <p style="margin: 0px; padding: 0px; text-indent: 2em;"> <span style="color: rgb(0, 0, 0);"> <span style="background-color: rgb(255, 255, 255);">mysqldump -u wcnc -p smgp_apps_wcnc > wcnc.sql</span> </span> </p> <p style="margin: 0px; padding: 0px; text-indent: 2em;"> <span style="color: rgb(0, 0, 255);"> <span style="color: rgb(0, 0, 0);"> </span> </span> </p> <p style="margin: 0px; padding: 0px; text-indent: 2em;"> <span style="color: rgb(0, 0, 0);"> <span style="background-color: rgb(255, 255, 255);">2.瀵煎嚭涓涓〃</span> </span> </p> <p style="margin: 0px; padding: 0px; text-indent: 2em;"> <span style="color: rgb(0, 0, 255);"> <span style="color: rgb(0, 0, 0);"> </span> </span> </p> <p style="margin: 0px; padding: 0px; text-indent: 2em;"> <span style="color: rgb(0, 0, 0);"> <span style="background-color: rgb(255, 255, 255);">mysqldump -u 鐢ㄦ埛鍚?-p 鏁版嵁搴撳悕琛ㄥ悕> 瀵煎嚭鐨勬枃浠跺悕</span> </span> </p> <p style="margin: 0px; padding: 0px; text-indent: 2em;"> <span style="color: rgb(0, 0, 0);"> <span style="background-color: rgb(255, 255, 255);">mysqldump -u wcnc -p smgp_apps_wcnc users> wcnc_users.sql</span> </span> </p> <p style="margin: 0px; padding: 0px; text-indent: 2em;"> <span style="color: rgb(0, 0, 255);"> <span style="color: rgb(0, 0, 0);"> </span> </span> </p> <p style="margin: 0px; padding: 0px; text-indent: 2em;"> <span style="color: rgb(0, 0, 0);"> <span style="background-color: rgb(255, 255, 255);">3.瀵煎嚭涓涓暟鎹簱緇撴瀯</span> </span> </p> <p style="margin: 0px; padding: 0px; text-indent: 2em;"> <span style="color: rgb(0, 0, 255);"> <span style="color: rgb(0, 0, 0);"> </span> </span> </p> <p style="margin: 0px; padding: 0px; text-indent: 2em;"> <span style="color: rgb(0, 0, 0);"> <span style="background-color: rgb(255, 255, 255);">mysqldump -u wcnc -p -d --add-drop-table smgp_apps_wcnc >d:wcnc_db.sql</span> </span> </p> <p style="margin: 0px; padding: 0px; text-indent: 2em;"> <span style="color: rgb(0, 0, 0);"> <span style="background-color: rgb(255, 255, 255);">-d 娌℃湁鏁版嵁 --add-drop-table 鍦ㄦ瘡涓猚reate璇彞涔嬪墠澧炲姞涓涓猟rop table</span> </span> </p> <p style="margin: 0px; padding: 0px; text-indent: 2em;"> <span style="color: rgb(0, 0, 255);"> <span style="color: rgb(0, 0, 0);"> </span> </span> </p> <p style="margin: 0px; padding: 0px; text-indent: 2em;"> <span style="color: rgb(0, 0, 0);"> <span style="background-color: rgb(255, 255, 255);">4.瀵煎叆鏁版嵁搴?/span> </span> </p> <p style="margin: 0px; padding: 0px; text-indent: 2em;"> <span style="color: rgb(0, 0, 255);"> <span style="color: rgb(0, 0, 0);"> </span> </span> </p> <p style="margin: 0px; padding: 0px; text-indent: 2em;"> <span style="color: rgb(0, 0, 0);"> <span style="background-color: rgb(255, 255, 255);">甯哥敤source 鍛戒護</span> </span> </p> <p style="margin: 0px; padding: 0px; text-indent: 2em;"> <span style="color: rgb(0, 0, 0);"> <span style="background-color: rgb(255, 255, 255);">榪涘叆mysql鏁版嵁搴撴帶鍒跺彴,</span> </span> </p> <p style="margin: 0px; padding: 0px; text-indent: 2em;"> <span style="color: rgb(0, 0, 0);"> <span style="background-color: rgb(255, 255, 255);">濡俶ysql -u root -p</span> </span> </p> <p style="margin: 0px; padding: 0px; text-indent: 2em;"> <span style="color: rgb(0, 0, 0);"> <span style="background-color: rgb(255, 255, 255);">mysql>use 鏁版嵁搴?/span> </span> </p> <p style="margin: 0px; padding: 0px; text-indent: 2em;"> <span style="color: rgb(0, 0, 0);"> <span style="background-color: rgb(255, 255, 255);">鐒跺悗浣跨敤source鍛戒護,鍚庨潰鍙傛暟涓鴻剼鏈枃浠?濡傝繖閲岀敤鍒扮殑.sql)</span> </span> </p> <p style="margin: 0px; padding: 0px; text-indent: 2em;"> <span style="color: rgb(0, 0, 0);"> <span style="background-color: rgb(255, 255, 255);">mysql>source d:wcnc_db.sql</span> </span> </p> </td> </tr> </tbody> </table> <img src ="http://www.tkk7.com/libin2722/aggbug/427346.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/libin2722/" target="_blank">紺肩墿</a> 2015-09-16 08:49 <a href="http://www.tkk7.com/libin2722/articles/427346.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>ERROR 2006 (HY000) at line xx: MySQL server has gone away 瑙e喅鏂規硶 http://www.tkk7.com/libin2722/articles/427345.html紺肩墿紺肩墿Wed, 16 Sep 2015 00:48:00 GMThttp://www.tkk7.com/libin2722/articles/427345.htmlhttp://www.tkk7.com/libin2722/comments/427345.htmlhttp://www.tkk7.com/libin2722/articles/427345.html#Feedback0http://www.tkk7.com/libin2722/comments/commentRss/427345.htmlhttp://www.tkk7.com/libin2722/services/trackbacks/427345.html1.鎵ц鎵歸噺鐨凪YSQL璇彞錛屼緥濡傚浠芥仮澶嶇殑鏃跺欙紝鏃墮棿榪囬暱銆?
瀵瑰簲錛氫慨鏀筸y.cnf涓殑wait_timeout鍜宨nteractive_timeout鍙橀噺
鍦ㄤ竴浜涗笉渚夸慨鏀圭殑鎯呭艦涓嬶紝濡傜鐢ㄧ殑絀洪棿錛屽彲浠ラ噰鍙杝ql璇彞淇敼錛屽浣曞仛鍛紵

瑙e喅鍔炴硶

鎵懼埌my.ini鏂囦歡

娣誨姞涓鍙ax_allowed_packet=16M錛屽鏋滀笉琛屽皢16M鍐嶅姞澶?/p>

鍔犲ぇwait_timeout涔熷彲璧蜂竴瀹氫綔鐢?/p>

eg:

wait_timeout=2880000
interactive_timeout = 2880000
max_allowed_packet = 100M

搴旂敤鏃惰浣忛噸鍚暟鎹簱鍝︼綖锝?/strong>

闄ゆ涔嬪錛屽彲鑳借繕鏈変竴浜涘埆鐨刡uffer_size鐨勫彉閲忎細褰卞搷鍒幫紝涔熷煎緱娉ㄦ剰
渚嬪
read_buffer_size
read_rnd_buffer_size


紺肩墿 2015-09-16 08:48 鍙戣〃璇勮
]]>
iBatis 鏂板鏃跺欎富閿殑鑾峰彇(MySql)http://www.tkk7.com/libin2722/articles/297835.html紺肩墿紺肩墿Mon, 12 Oct 2009 00:45:00 GMThttp://www.tkk7.com/libin2722/articles/297835.htmlhttp://www.tkk7.com/libin2722/comments/297835.htmlhttp://www.tkk7.com/libin2722/articles/297835.html#Feedback0http://www.tkk7.com/libin2722/comments/commentRss/297835.htmlhttp://www.tkk7.com/libin2722/services/trackbacks/297835.html聽聽聽聽聽聽聽 insert into usersrcaccount
聽聽聽聽聽聽聽 (
聽聽聽聽聽聽聽聽聽聽聽 USER_ID,
聽聽聽聽聽聽聽聽聽聽聽 SOURCETYPE,
聽聽聽聽聽聽聽聽聽聽聽 ACCOUNT,
聽聽聽聽聽聽聽聽聽聽聽 PASSWORD
聽聽聽聽聽聽聽 )
聽聽聽聽聽聽聽 values
聽聽聽聽聽聽聽 (
聽聽聽聽聽聽聽聽聽聽聽 #userId#,
聽聽聽聽聽聽聽聽聽聽聽 #sourceType#,
聽聽聽聽聽聽聽聽聽聽聽 #account#,
聽聽聽聽聽聽聽聽聽聽聽 #password#
聽聽聽聽聽聽聽 )
聽聽聽聽聽聽聽 <selectKey resultClass="java.lang.Long" keyProperty="id" >
聽聽聽聽聽聽聽聽聽聽聽 SELECT @@IDENTITY AS id
聽聽聽聽聽聽聽 </selectKey>
聽聽聽 </insert>

紺肩墿 2009-10-12 08:45 鍙戣〃璇勮
]]>
濡備綍寮鍚疢ySQL鐨勮繙紼嬪笎鍙?http://www.tkk7.com/libin2722/articles/287099.html紺肩墿紺肩墿Fri, 17 Jul 2009 02:41:00 GMThttp://www.tkk7.com/libin2722/articles/287099.htmlhttp://www.tkk7.com/libin2722/comments/287099.htmlhttp://www.tkk7.com/libin2722/articles/287099.html#Feedback0http://www.tkk7.com/libin2722/comments/commentRss/287099.htmlhttp://www.tkk7.com/libin2722/services/trackbacks/287099.html寮鍚?MySQL 鐨勮繙紼嬬櫥闄嗗笎鍙鋒湁涓ゅぇ姝ワ細

1銆佺‘瀹氭湇鍔″櫒涓婄殑闃茬伀澧欐病鏈夐樆姝?3306 绔彛銆?/p>

MySQL 榛樿鐨勭鍙f槸 3306 錛岄渶瑕佺‘瀹氶槻鐏娌℃湁闃繪 3306 绔彛錛屽惁鍒欒繙紼嬫槸鏃犳硶閫氳繃 3306 绔彛榪炴帴鍒?MySQL 鐨勩?/p>

濡傛灉鎮ㄥ湪瀹夎 MySQL 鏃舵寚瀹氫簡鍏朵粬绔彛錛岃鍦ㄩ槻鐏涓紑鍚偍鎸囧畾鐨?MySQL 浣跨敤鐨勭鍙e彿銆?/p>

濡傛灉涓嶇煡閬撴庢牱璁劇疆鎮ㄧ殑鏈嶅姟鍣ㄤ笂鐨勯槻鐏錛岃鍚戞偍鐨勬湇鍔″櫒綆$悊鍛樺挩璇€?/p>

2銆佸鍔犲厑璁歌繙紼嬭繛鎺?MySQL 鐢ㄦ埛騫舵巿鏉冦?/p>

1錛夐鍏堜互 root 甯愭埛鐧婚檰 MySQL

鍦?Windows 涓繪満涓偣鍑誨紑濮嬭彍鍗曪紝榪愯錛岃緭鍏モ渃md鈥濓紝榪涘叆鎺у埗鍙幫紝MySQL 鐨?bin 鐩綍涓嬶紝鐒跺悗杈撳叆涓嬮潰鐨勫懡浠ゃ?/p>

鍦?Linux 涓繪満涓湪鍛戒護鎻愮ず琛屼笅杈撳叆涓嬮潰鐨勫懡浠ゃ?/p>

> MySQL -uroot -p123456

123456 涓?root 鐢ㄦ埛鐨勫瘑鐮併?/p>

2錛夊垱寤鴻繙紼嬬櫥闄嗙敤鎴峰茍鎺堟潈

> grant all PRIVILEGES on discuz.* to ted@'123.123.123.123' identified by '123456';

涓婇潰鐨勮鍙ヨ〃紺哄皢 discuz 鏁版嵁搴撶殑鎵鏈夋潈闄愭巿鏉冪粰 ted 榪欎釜鐢ㄦ埛錛屽厑璁?ted 鐢ㄦ埛鍦?123.123.123.123 榪欎釜 IP 榪涜榪滅▼鐧婚檰錛屽茍璁劇疆 ted 鐢ㄦ埛鐨勫瘑鐮佷負 123456 銆?/p>

涓嬮潰閫愪竴鍒嗘瀽鎵鏈夌殑鍙傛暟錛?/p>

all PRIVILEGES 琛ㄧず璧嬩簣鎵鏈夌殑鏉冮檺緇欐寚瀹氱敤鎴鳳紝榪欓噷涔熷彲浠ユ浛鎹負璧嬩簣鏌愪竴鍏蜂綋鐨勬潈闄愶紝渚嬪錛歴elect,insert,update,delete,create,drop 絳夛紝鍏蜂綋鏉冮檺闂寸敤鈥?鈥濆崐瑙掗楀彿鍒嗛殧銆?/p>

discuz.* 琛ㄧず涓婇潰鐨勬潈闄愭槸閽堝浜庡摢涓〃鐨勶紝discuz 鎸囩殑鏄暟鎹簱錛屽悗闈㈢殑 * 琛ㄧず瀵逛簬鎵鏈夌殑琛紝鐢辨鍙互鎺ㄧ悊鍑猴細瀵逛簬鍏ㄩ儴鏁版嵁搴撶殑鍏ㄩ儴琛ㄦ巿鏉冧負鈥?.*鈥濓紝瀵逛簬鏌愪竴鏁版嵁搴撶殑鍏ㄩ儴琛ㄦ巿鏉冧負鈥滄暟鎹簱鍚?*鈥濓紝瀵逛簬鏌愪竴鏁版嵁搴撶殑鏌愪竴琛ㄦ巿 鏉冧負鈥滄暟鎹簱鍚?琛ㄥ悕鈥濄?/p>

ted 琛ㄧず浣犺緇欏摢涓敤鎴鋒巿鏉冿紝榪欎釜鐢ㄦ埛鍙互鏄瓨鍦ㄧ殑鐢ㄦ埛錛屼篃鍙互鏄笉瀛樺湪鐨勭敤鎴楓?/p>

123.123.123.123 琛ㄧず鍏佽榪滅▼榪炴帴鐨?IP 鍦板潃錛屽鏋滄兂涓嶉檺鍒墮摼鎺ョ殑 IP 鍒欒緗負鈥?鈥濆嵆鍙?/p>

123456 涓虹敤鎴風殑瀵嗙爜銆?/p>

鎵ц浜嗕笂闈㈢殑璇彞鍚庯紝鍐嶆墽琛屼笅闈㈢殑璇彞錛屾柟鍙珛鍗崇敓鏁堛?/p>

> flush privileges;


紺肩墿 2009-07-17 10:41 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 亚洲日本香蕉视频| 亚洲国产情侣一区二区三区| 亚洲日韩国产欧美一区二区三区| 24小时在线免费视频| 亚洲一区二区在线视频| 亚洲视频免费在线观看| 久久亚洲精品中文字幕| 猫咪免费人成网站在线观看| 亚洲国产成人久久三区| 中文字幕无码免费久久99| 亚洲色欲色欱wwW在线| 永久中文字幕免费视频网站| 国产亚洲精品美女久久久久 | 美女无遮挡免费视频网站| 国产免费无遮挡精品视频| 羞羞漫画页面免费入口欢迎你| 免费大香伊蕉在人线国产| 另类图片亚洲校园小说区| 亚洲中文字幕视频国产| 人人玩人人添人人澡免费| 亚洲视频在线观看地址| 扒开双腿猛进入爽爽免费视频| 久久久久久亚洲av无码蜜芽| 亚洲伊人久久综合影院| 色欲A∨无码蜜臀AV免费播| 亚洲精品**中文毛片| 成年人免费视频观看| 有码人妻在线免费看片| 亚洲国产人成在线观看69网站| ww4545四虎永久免费地址| 亚洲暴爽av人人爽日日碰| 久久精品国产亚洲一区二区三区 | 亚洲性色AV日韩在线观看| 亚洲不卡AV影片在线播放| 午夜影院免费观看| 亚洲AV无码一区二区一二区| 亚洲精品色午夜无码专区日韩| 欧美在线看片A免费观看| 一级做a爰性色毛片免费| 亚洲精品国产情侣av在线| 国产中文字幕免费|