52AV璈A|52AV.ONE

 曉撖蝣
 蝡唾酉
敹急瑕
  • av隢憯BBS
  • 璈A
  • 芣瑟憭瘚
  • 鞎澆
  • 52av鋆貉摰
  • 銝剜-銝剖銝餅
     
亦: 3147|敺: 0
銝銝銝駁 銝銝銝駁

[mysql] MySQL 臬箏臬交隞

[銴鋆賡包
頝唾唳摰璅撅
璅銝
潸” 2015-6-23 08:22:56 | 芰閰脖 撣 |摨閬 |梯璅∪
[臬榜3 ]6 ?$ q  N# D1 ~" D
mysqldump -u userid -e -p db_Name > xxxxx.sql
' _7 h, H$ M! c7 y0 t& l1 L臬箔table:mysqldump -p -u userid dbname tablename > 52avtv_dzx20.201506242307.sql& n0 V5 F, z* B, f7 f
臬箸鞈摨: mysqldump -p -u userid --all-databases > all-database.sql            5 H7 w6 Z& ?- l) Y; f  Y
       雿,臬啁桃鞈摨怎雿輻刻撣唾撖蝣潭憿,隞仿舀鞈摨怠交,雿輻刻撣唾銋亙臬箸頛摰. \* A' r( Y  Z. V+ e% u, ^
[芸臬箇瑽]  : https://iter01.com/206843.html
% o' W2 P7 p+ \! S: i7 Bmysqldump--opt-d鞈摨怠-uroot-p>xxx.sql
- r' h9 i: h/ v$ |. Z[芸臬箄]
% e# T7 j( ?) }( n. Smysqldump-t鞈摨怠-uroot-p>xxx.sql
9 V: F8 }; s# d4 A! n3 R6 m9 |! M
7 Z) p9 |  e/ _" }- h
瘜冽:    嗡誑銝餈唳隞文隞賣蝬脩箇 "502 bad gateway",敶梢踹迸ginx,芾 --single-transaction --quick 撠勗末鈭,憒銝:
4 V: B5 {- v: u# m5 }9 ^. A% w5 xmysqldump -u userid -e -p --single-transaction --quick db_Name > xxxxx.sql& i, y' n# l2 d5 ?' J, G- i
憿:mysqldump: Got error: 1017: Can't find file: 'pre_forum_rsscache' (errno: 2) when using LOCK TABLES  D& t, j: z* h6 a4 Q
Sol: 芾皂ysqldump銝--lock-tables=false撠勗臭誑閫瘙箏憿4 [. ^4 ^4 R) C. h3 M/ C, V
亥箇: mysqldump: Couldn't execute 'show create table `pre_forum_rsscache`': Can't find file: 'pre_forum_rsscache' (errno: 2) (1017),隞叼hpmyadmin餃交亦餌pre_forum_rsscache  雿輻其葉ls /var/lib/mysql/52avtv_dz/pre_forum_rsscache*  潛曉芣  pre_forum_rsscache.frm 1瑼獢 ,甇撣豢閰脰3瑼:  j" m9 p  n6 }7 _# `
-rw-rw---- 1 mysql mysql 8852 Jun  3 16:05 pre_forum_rsscache.frm
# M' ]4 r$ l, W1 N7 I1 }-rw-rw---- 1 mysql mysql    0 Jun  3 16:05 pre_forum_rsscache.MYD
! a# h. C, g& V' P. R2 D& {/ ]8 @-rw-rw---- 1 mysql mysql 1024 Jun  3 16:05 pre_forum_rsscache.MYI
/ L: z5 p( Y/ B+ M* bSol:

3 g3 E3 j! e) O3 @, ?私hpmyadmin ==SQL 銝隞:
" u0 a  \' C6 ^
  1. DROP TABLE IF EXISTS pre_forum_rsscache;
  2. CREATE TABLE pre_forum_rsscache (
  3. lastupdate int(10) unsigned NOT NULL DEFAULT '0',
  4. fid mediumint(8) unsigned NOT NULL DEFAULT '0',
  5. tid mediumint(8) unsigned NOT NULL DEFAULT '0',
  6. dateline int(10) unsigned NOT NULL DEFAULT '0',
  7. forum char(50) NOT NULL DEFAULT '',
  8. author char(15) NOT NULL DEFAULT '',
  9. `subject` char(80) NOT NULL DEFAULT '',
  10. description char(255) NOT NULL DEFAULT '',
  11. guidetype char(10) NOT NULL DEFAULT '',
  12. UNIQUE KEY tid (tid),
  13. KEY fid (fid,dateline)
  14. ) ENGINE=MYISAM DEFAULT CHARSET=utf8
銴鋆賭誨蝣

0 @$ O6 L. I* H( G; [9 m隞賢停甇撣訾
9 _: N$ o9 Q' j1 ^4 c/ T( n; ^) O5 t憿:  嗡蝙皂ariadb 5.5.68  隞賣箇頡rror:mysqldump: Couldn't execute 'SHOW TRIGGERS LIKE 'pre\_portal\_topic\_pic'': Can't read dir of './db_name/' (errno: 24) (1018)
9 ]4 E7 B+ C8 X3 A* u- G3 pSol:  open_files_limit(default=962) 憭芸,寧4096,望澆撅祆廝ead-only,/etc/my.cnf - n3 I. d$ j( D- J
嗅 service mariadb restart$ K. G- S' _- T/ }. G, I9 G; I
8 N& v+ x, R! O+ V
[璇隞嗅臬榜) @( l( w* k( y7 w1 p5 T0 ^7 j5 k
mysqldump -u撣唾 -p撖蝣 -h銝餅 鞈摨 鞈銵 -w "sql璇隞" > 箄撓頝臬瑼獢. s7 S) d- v; C6 d* G
靘:/ S# J+ b$ H4 M: ?6 o- H0 `, c
mysqldump -uroot -p123456 -hlocalhost -e AREA_UTF8 city -w "c_id<10 " > /home/web/a.txt. e* [/ Z- d) ^( F3 _- B: W) P- S8 c' w
" }( E* t) e3 h' t, Q8 B
--no-create-info嚗-t
1 \: [7 Z- {! s8 {3 e, L# |芸箄嚗銝瘛餃 CREATE TABLE 隤伐憒撠箸澆搴QL隤伐芣insert into典6 a: {# k: S: v* v/ v
--no-data嚗-d
6 e( o5 P( N3 u4 k5 [  P9 S銝撠箔遙雿鞈嚗芸箄摨怎瑽" S' |4 F0 o! U( ~
--quick嚗-q
- e" s6 e4 p8 \. b6 e% w典箏之鞈敺剁撘瑕嗅 MySQL Server 亥岷敺閮湔亥撓綽銝臬敺閮敺摮刻園銝准- s7 G* j7 I( f: {/ j- s
( |! b. e- L! O% k
# s: g4 e# |$ B% U' q0 R
[臬包/ f& X  G2 Y! Z( j
mysql -u userid -p [-h localhost] db_Name < xxxxx.sql4 D4 {% o7 H- z$ |+ {' J
臬交鞈摨:   mysql -u userid -p < all-database.sql
" T3 ]8 U) ~. y8 T+ c臬乩table :
0 ?7 N/ U# i, S, P. Omysql -u userid -p -D dbname < cc5278_dzx20.ip2c.201506242307.sql
% O) h0 X' F4 g1 |! ]1 ~) y- MP.S憒臬交憭芸之憒7GB,臬交獢銋瑁銝隞:
0 g6 K, K: [1 W! e  Rmysql -uroot -p -e "set global net_buffer_length=1000000; set global max_allowed_packet=1000000000;"
2 y8 D5 P8 v# J4 J5 h" c, I2 z/ L3 c2 g# c  [" I
[臬箏蝡喳臬亙啣虫唬蜓璈]
: I. \3 `5 q2 n! W1 O+ u, H$ C' cmysqldump -u [SOURCE_userid] -h [SOURCE_IP] -e -q --password=[SOURCE_PASSWORD] SOURCE_db_Name | mysql -u [DISTANCE_userid] --password=[DISTANCE_PASSWORD] -h [DISTANCE_IP] DISTANCE_db_Name
1 t  s2 k0 K, U9 p+ t8 R2 d[閮剖臬乩(批2Mb) by phpmyadmin]
* y3 g9 Y0 H9 P% @+ m1 ^8 z8 V* ehttp://www.av4u.info/forum.php?m ... e=1&extra=#pid20348
9 [8 K) s% B  l! V% I% \6 h- M4 A; m* \# a: P! E" d4 i0 D2 a

0 e% q# F: z) |" z6 `( n# i( E
  x4 O1 ]* N7 ^5 N! V: e7 h& c8 E: R- G: T& R

1 g. m/ T) }) b, ?$ x! ^
$ K, K+ s# b& |0 x, D$ Y/ e4 ~5 Q# Y- o- {2 Q$ _9 D  n. R" `
6 `2 M& Z8 E% b& F
5 j% ^3 l) T- ]
5 W2 t% E" x# H% V) l$ {% q
) c! J: W( C2 Z; b, ~3 t1 y
* y5 T7 ~: k' U
/ v1 w% R! P% D
8 x! s6 N. Q+ b6 ~1 c% D

雿輻券

祉蝛閬

BT蝳

砍憛批捆靘餉衣雯頝臬批捆蝝颲行粹嗥蝬脩嚗摰撟湔遛嚗嚗甇脖誑銝嗅啣摰嗆摰撟湧翩鈭箏ㄚ孵舫脣伐銝憿亙祉璇甈橘芣遛18甇 雓蝯脣亦閬賬粹脩芣遛18甇脖芣撟渡雯閬賜雯頝臭嗥批捆鞈閮嚗撱箄降典舫脰蝬脰楝批捆蝝蝯蝜ICRA蝝摰鋆閮剖 (粹蝯行霅 祉蝬脣銝蝝瘛函隢憯啣嚗祉閮剜蝞∠)

QQ|撠暺撅||52AV璈A

GMT+8, 2024-11-22 15:36 , Processed in 0.059378 second(s), 16 queries .

蝯∠.撱

[email protected] | QQ:2405733034     since 2015-01

鋆貉憒 敹恍敺 餈銵