mysql数据库导出数据
1. mysql濡备綍鍒╃敤Navicat瀵煎嚭鍜屽煎叆鏁版嵁搴撶殑鏂规硶
MySql鏄鎴戜滑缁忓父鐢ㄥ埌镄勬暟鎹锛屾棤璁烘槸寮鍙戜汉锻樼敤𨱒ョ粌涔狅纴杩樻槸灏忓瀷绉佹湇娓告垙链嶅姟鍣锛屾垨钥呮槸涓浜鸿蒋浠朵娇鐢锛岄兘鍗佸垎鏂逛究銆傚逛簬锅氢竴浜涗釜浜鸿緟锷╄蒋浠讹纴阃夋嫨mysql鏁版嵁搴撴槸涓鏄庢櫤镄勯夋嫨锛屾湁涓涓濂界殑宸ュ叿镟存槸浜嫔崐锷熷嶏纴瀵逛簬MySql 镄処DE 鎴戞帹钻怤avicat for MySql锛岀幇鍦ㄦ垜灏卞悜澶у朵粙缁嶅备綍鍒╃敤Navicat for MySql 瀵煎嚭鍜屽煎叆鏁版嵁銆
瀵煎嚭鏁版嵁搴掳细
镓揿紑Navicat 锛屽湪鎴戜滑瑕佸埌澶勭殑鏁版嵁涓婇溃鍙冲嚮榧犳爣锛岀劧钖庡脊鍑虹殑蹇鎹疯彍鍗曚笂镣瑰嚮钬滆浆鍌⊿QL 鏂囦欢钬濓纴鍦ㄥ啀娆″脊鍑虹殑瀛愯彍鍗曢”涓阃夋嫨绗涓涓钬沧暟鎹璺熺粨鏋勨濄
铹跺悗锛屽湪浼氩脊鍑轰竴涓阃夋嫨淇濆瓨浣岖疆镄勪缭瀛樻嗭纴阃夋嫨濂戒綅缃钖庯纴镣圭‘瀹氾纴灏监K浜
瀵煎叆鏁版嵁搴掳细
镓揿紑Navicat for MySQL锛岀劧钖庣偣鍑诲彸阌阃夋嫨鏂板缓鏁版嵁搴掳纴钖嶅瓧璺熸垜浠瑕佸煎叆镄勬暟鎹镄勫悕瀛椾竴镙
镣瑰嚮纭瀹氩悗锛屾垜浠灏卞彲浠ヨ佸埌宸﹁竟鍑虹幇鍒氩垰鎴戜滑寤虹珛濂界殑鏁版嵁浜嗭纴铹跺悗鍙冲嚮阃夋嫨钬滆繍琛孲QL鏂囦欢钬濅细寮瑰嚭涓涓妗嗭纴镣瑰嚮钬...钬濋夋嫨鏂囦欢镓鍦ㄧ殑璺寰勶纴
镣瑰嚮寮濮嬶纴鏂囦欢灏变细瀵煎叆鎴愬姛锛
涓ユ牸𨱒ヨ诧纴鍏跺疄Navicat for MySQL瀵煎嚭镄勪笉鏄鏁版嵁搴掳纴钥屾槸鏁版嵁搴扑腑镄勬墍链夎〃镄勬暟鎹浠ュ强缁撴瀯銆傛墍浠ワ纴濡傛灉浣犱笉寤虹珛涓庝箣瀵瑰簲镄勬暟鎹搴掳纴钥屾槸闅忎究镓句竴涓鏁版嵁瀵煎叆锛岀粨鏋沧槸杩欎釜鏁版嵁搴揿氢简鍑犲紶鍒氩垰瀵煎叆镄勮〃銆
PS锛歮ysql 鏁版嵁搴揿煎叆瀵煎嚭鏂规硶镐荤粨
涓鑸褰㈠纺锛歮ysqlmp -h IP -u 鐢ㄦ埛钖 -p 鏁版嵁搴揿悕 > 瀵煎嚭镄勬枃浠跺悕
锛1锛-p 钖庨溃涓嶈兘锷爌assword锛屽彧鑳藉崟镫杈揿叆濡1涓闾f牱 锛2锛尘ysqlmp鏄鍦╟md涓嬬殑锻戒护锛屼笉鑳藉啀mysql涓嬮溃锛屽嵆涓嶈兘杩涘叆mysql镄勶纸鍗硊se dpname涓嬶纴寰梕xit阃鍑簃ysql涓嬫墠鍙浠ョ殑銆傦级
涓锛氭暟鎹搴撶殑瀵煎嚭锛埚囦唤锛
0:(澶囦唤鏁版嵁搴揿嵆瀵煎嚭镓链夎〃浠ュ强鏁版嵁 涓嶅姞-d)
mysqlmp -h localhost -u root -p test > G:arcgisworkspacezypdoc est.sql
mysqlmp -h 10.180.6.183 -u root -p dmsdev > D:imssdb20170930dmsdev20170930.sql
mysqlmp -h 10.180.6.183 -u root -p newfwk > D:imssdb20170930
ewfwk20170930.sql
mysqlmp -h 10.180.6.183 -u root -p dcsdev > D:imssdb20170930dcsdev20170930.sql
浜岋细鏁版嵁搴撶殑瀵煎叆(杩桦师)
0锛氩煎叆鏁版嵁搴掳纸棣栧厛寰楀垱寤烘暟鎹锛屽啀瀵煎叆锛塁:Program FilesMySQLMySQL Server 5.5in>
mysql -h localhost -u root -p锛堣繘鍏mysql涓嬮溃锛
create database abc;(鍒涘缓鏁版嵁搴)
show databases;(灏卞彲鐪嫔埌镓链夊凡缁忓瓨鍦ㄧ殑鏁版嵁搴掳纴浠ュ强鍒氩垰鍒涘缓镄勬暟鎹搴揳bc)
use abc;(杩涘叆abc鏁版嵁搴扑笅闱)
show tables;(浜х湅abc鏁版嵁搴扑笅闱㈢殑镓链夎〃,绌虹殑)
source G:arcgisworkspacezypdoc est.sql锛埚煎叆鏁版嵁搴撹〃锛
show tables;(镆ョ湅abc鏁版嵁搴扑笅闱㈢殑镓链夎〃,灏卞彲浠ョ湅鍒拌〃浜)
desc pollution;(镆ョ湅琛ㄧ粨鏋勮捐)
select * from pollution;
exit(鎴栬卌trl + c)阃鍑簃ysql