52AV璈A|52AV.ONE

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

[mysql] MySQL 臬箏臬交隞

[銴鋆賡包
頝唾唳摰璅撅
璅銝
潸” 2015-6-23 08:22:56 | 芰閰脖 撣 |摨閬 |梯璅∪
[臬榜
% g% }6 Y4 A0 l/ Emysqldump -u userid -e -p db_Name > xxxxx.sql
3 E5 \4 i/ R5 q6 K9 V, q臬箔table:mysqldump -p -u userid dbname tablename > 52avtv_dzx20.201506242307.sql
; H8 G5 \( c. Y% D5 o8 P6 `臬箸鞈摨: mysqldump -p -u userid --all-databases > all-database.sql            
! @$ |& A7 R4 D# O, n& o* ^- F       雿,臬啁桃鞈摨怎雿輻刻撣唾撖蝣潭憿,隞仿舀鞈摨怠交,雿輻刻撣唾銋亙臬箸頛摰# Z: r1 I0 o5 Y# a' T4 @7 o: t
[芸臬箇瑽]  : https://iter01.com/206843.html
# G6 l- I" R2 ^& @* Tmysqldump--opt-d鞈摨怠-uroot-p>xxx.sql, B! ?! z3 `: H
[芸臬箄]
+ S4 [; S, n2 l, P5 C1 r( e) p- S+ _# `mysqldump-t鞈摨怠-uroot-p>xxx.sql2 ?/ ?' U% ~$ _* U4 h" N- G' q; f
3 n% z0 S4 M" y, }
瘜冽:    嗡誑銝餈唳隞文隞賣蝬脩箇 "502 bad gateway",敶梢踹迸ginx,芾 --single-transaction --quick 撠勗末鈭,憒銝:
, e- [. t5 P0 Z9 V! E3 i9 [mysqldump -u userid -e -p --single-transaction --quick db_Name > xxxxx.sql
7 v4 m. d& S* k, L4 {: f3 _憿:mysqldump: Got error: 1017: Can't find file: 'pre_forum_rsscache' (errno: 2) when using LOCK TABLES
7 k+ s2 g4 ?7 P, ]8 R0 @Sol: 芾皂ysqldump銝--lock-tables=false撠勗臭誑閫瘙箏憿+ Q- O5 }. h$ M" p5 J9 {1 t
亥箇: 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瑼:
& |4 S. m3 H2 P1 P* k5 o. Z-rw-rw---- 1 mysql mysql 8852 Jun  3 16:05 pre_forum_rsscache.frm
, l1 `) D9 f% j-rw-rw---- 1 mysql mysql    0 Jun  3 16:05 pre_forum_rsscache.MYD! V. B* N0 n/ K) q
-rw-rw---- 1 mysql mysql 1024 Jun  3 16:05 pre_forum_rsscache.MYI- j5 {4 l0 J& C7 c; S! N
Sol:

2 p  q% y) I" ~. C! Y2 ], `私hpmyadmin ==SQL 銝隞:2 M3 r- R% ^# |# d  \" m) r3 {4 ^2 K
  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
銴鋆賭誨蝣
; j2 t. h9 N5 G
隞賢停甇撣訾
" ]% `7 n8 n' V4 I" O4 s憿:  嗡蝙皂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)
+ h) X1 @& ]" _1 E" m$ oSol:  open_files_limit(default=962) 憭芸,寧4096,望澆撅祆廝ead-only,/etc/my.cnf ! I4 C1 J" [$ ^
嗅 service mariadb restart
) n% p. X  X; @3 N( ~. \0 W( Y( c/ b* ~$ K
[璇隞嗅臬榜) x& F' m  F. O; v& H
mysqldump -u撣唾 -p撖蝣 -h銝餅 鞈摨 鞈銵 -w "sql璇隞" > 箄撓頝臬瑼獢" f+ {( N6 G- `( ~! t6 x
靘:4 J4 ^; Y$ H' l4 {; a
mysqldump -uroot -p123456 -hlocalhost -e AREA_UTF8 city -w "c_id<10 " > /home/web/a.txt
3 g* s4 `# ]  v ( ^4 Z$ Y% M, _$ Z
--no-create-info嚗-t9 A: L2 c. K2 z) ?1 Q7 E
芸箄嚗銝瘛餃 CREATE TABLE 隤伐憒撠箸澆搴QL隤伐芣insert into典. p1 c$ {2 |5 {2 H3 g
--no-data嚗-d
" G8 [' d& P2 E5 Y3 w/ O銝撠箔遙雿鞈嚗芸箄摨怎瑽
1 \+ f" v. f' x; M- u$ Z--quick嚗-q ; y# y, P$ m% b) Z
典箏之鞈敺剁撘瑕嗅 MySQL Server 亥岷敺閮湔亥撓綽銝臬敺閮敺摮刻園銝准
, p' m7 p5 y1 W( y+ l
0 w0 d# c2 E, m8 I+ l0 k) G* s* {* J( u% c) ~" {
[臬包
; @$ v% M" L' d1 s9 s: Y1 v% Mmysql -u userid -p [-h localhost] db_Name < xxxxx.sql5 @* K. c, N. c$ @& ?% b
臬交鞈摨:   mysql -u userid -p < all-database.sql
  j: P' x" {5 L! l. Y5 ~臬乩table :
6 ~2 c6 w7 z7 I* E9 s: n! tmysql -u userid -p -D dbname < cc5278_dzx20.ip2c.201506242307.sql8 {; z+ D; R0 C- u2 B
P.S憒臬交憭芸之憒7GB,臬交獢銋瑁銝隞:; ~7 [5 u% n4 A2 }5 x
mysql -uroot -p -e "set global net_buffer_length=1000000; set global max_allowed_packet=1000000000;"7 }  Q& k6 I3 [( F

8 v% U1 D/ y" h2 Z: a9 A
[臬箏蝡喳臬亙啣虫唬蜓璈]
0 e$ V8 m6 d$ m9 ~" gmysqldump -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 ; h( i1 Z! G$ D" ?
[閮剖臬乩(批2Mb) by phpmyadmin]' ~# }+ z- x4 l
http://www.av4u.info/forum.php?m ... e=1&extra=#pid20348
5 G3 g; h4 p% j% L
3 R! W/ i! T- y4 G' I" |' Q& u  D
7 |$ @" T  h+ c1 v+ [: @0 {/ O7 p3 l5 H0 L( u9 R) c
5 I5 ^- k* Z; C# L& v
& ?/ v! z2 ~! y$ g

, n$ Z2 f8 {3 |# b0 b, y0 v( U) F5 t, S) a0 m- R6 ^) B3 n
1 d( m6 z' l$ l- l  y

/ f: _, @# ?/ C- k$ c  O2 X4 T8 S6 [5 Q- G  n; t5 T6 q- g/ R! t
# m: O, G: }2 l+ O3 k6 v/ m9 q
4 E, b7 H1 S! c
. |. g$ |) Y: D, O1 \6 r+ y2 ]
& B: |6 ?5 o% V# s4 T3 v( s

雿輻券

祉蝛閬

BT蝳

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

QQ|撠暺撅||52AV璈A

GMT+8, 2024-12-4 03:22 , Processed in 0.062588 second(s), 16 queries .

蝯∠.撱

52avtv@gmail.com | QQ:2405733034     since 2015-01

鋆貉憒 敹恍敺 餈銵