52AV璈A|52AV.ONE

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

[mysql] MySQL 臬箏臬交隞

[銴鋆賡包
頝唾唳摰璅撅
璅銝
潸” 2015-6-23 08:22:56 | 芰閰脖 撣 |摨閬 |梯璅∪
[臬榜
0 z; n; ~1 Q- T3 C- a! B  Omysqldump -u userid -e -p db_Name > xxxxx.sql
7 P  `1 x- t+ D$ _6 K6 n' V臬箔table:mysqldump -p -u userid dbname tablename > 52avtv_dzx20.201506242307.sql- S7 D3 A' v4 q; N5 c  q
臬箸鞈摨: mysqldump -p -u userid --all-databases > all-database.sql            
0 }' Z+ T$ _- G6 {5 m8 V       雿,臬啁桃鞈摨怎雿輻刻撣唾撖蝣潭憿,隞仿舀鞈摨怠交,雿輻刻撣唾銋亙臬箸頛摰) e& [0 Q: Z  f- h' Q/ T
[芸臬箇瑽]  : https://iter01.com/206843.html
# D' `$ u( s& b* j+ }* L6 q7 O* Wmysqldump--opt-d鞈摨怠-uroot-p>xxx.sql
4 _' R$ `+ h* X: P  i1 G( `( U[芸臬箄]
. |. F& ^1 a# \% z' L' Gmysqldump-t鞈摨怠-uroot-p>xxx.sql7 Q5 i: ]$ @  p: [- t' ^, i/ r* T

- f. w& k, g- M9 g- ~* l
瘜冽:    嗡誑銝餈唳隞文隞賣蝬脩箇 "502 bad gateway",敶梢踹迸ginx,芾 --single-transaction --quick 撠勗末鈭,憒銝:
/ x9 A& k) H1 Y' T& Imysqldump -u userid -e -p --single-transaction --quick db_Name > xxxxx.sql
; m. d) n8 p/ o6 ]憿:mysqldump: Got error: 1017: Can't find file: 'pre_forum_rsscache' (errno: 2) when using LOCK TABLES
  k- N4 D, A' Q$ l1 P* `Sol: 芾皂ysqldump銝--lock-tables=false撠勗臭誑閫瘙箏憿
* t+ E5 n! w: \, [: o# A  v1 }/ 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瑼:/ W5 K! c% u1 R& i
-rw-rw---- 1 mysql mysql 8852 Jun  3 16:05 pre_forum_rsscache.frm
, i. e& C; x! Q- d0 }-rw-rw---- 1 mysql mysql    0 Jun  3 16:05 pre_forum_rsscache.MYD2 @: Z2 A( h: h6 Q4 u0 k0 T
-rw-rw---- 1 mysql mysql 1024 Jun  3 16:05 pre_forum_rsscache.MYI
8 `$ N, G) E3 L: pSol:
3 }: |: ]2 u0 i1 g0 B6 s& {: q
私hpmyadmin ==SQL 銝隞:- X0 ^* \4 [) H
  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
銴鋆賭誨蝣
6 t+ m$ a2 @% I  O! M% }
隞賢停甇撣訾
0 ~( I8 b! J9 m4 `, d/ G憿:  嗡蝙皂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)! |4 n- }2 a; i
Sol:  open_files_limit(default=962) 憭芸,寧4096,望澆撅祆廝ead-only,/etc/my.cnf * E) G) Z. @* ~7 b) t+ H
嗅 service mariadb restart
1 J  D8 x: J+ S+ M1 d% k- D- e/ P  B
[璇隞嗅臬榜( e; c) |' I6 Z0 @/ G
mysqldump -u撣唾 -p撖蝣 -h銝餅 鞈摨 鞈銵 -w "sql璇隞" > 箄撓頝臬瑼獢1 ~; T) ]6 C! \& r. Y% s! `% Z! c5 u
靘:; P8 C9 ]) x/ N4 e' D' B
mysqldump -uroot -p123456 -hlocalhost -e AREA_UTF8 city -w "c_id<10 " > /home/web/a.txt
, s4 p  A& a+ N% p5 |7 V# a
2 _( l2 y" {! ?2 R4 M7 j: l$ ^6 v--no-create-info嚗-t5 W# Y  h2 K9 q, P# t7 b
芸箄嚗銝瘛餃 CREATE TABLE 隤伐憒撠箸澆搴QL隤伐芣insert into典; D+ O. p3 W; J; m& J6 M
--no-data嚗-d
! r, Q' R  D: n# R, T銝撠箔遙雿鞈嚗芸箄摨怎瑽
2 c! Y* P0 l7 Y) ?, T; J% K--quick嚗-q
: C3 g2 j1 ^! U6 D5 V* ^5 S典箏之鞈敺剁撘瑕嗅 MySQL Server 亥岷敺閮湔亥撓綽銝臬敺閮敺摮刻園銝准
! [  J4 |2 q' k' _4 ^- [/ v
, t; l/ g; m5 t+ r2 B- z$ l, j3 X
0 S9 `1 a* A  X5 x: F[臬包" w* r( B" ~5 c; ]) K: |
mysql -u userid -p [-h localhost] db_Name < xxxxx.sql
! T- s& Z* q8 y$ B1 I& j; c. m臬交鞈摨:   mysql -u userid -p < all-database.sql1 `+ S* v- p" I9 c
臬乩table :/ ?( L5 ~; e! x; ~5 b. p
mysql -u userid -p -D dbname < cc5278_dzx20.ip2c.201506242307.sql
6 u  c% a4 ?8 g: H1 w# ~  ~P.S憒臬交憭芸之憒7GB,臬交獢銋瑁銝隞:
) G/ l7 d0 j) B" Smysql -uroot -p -e "set global net_buffer_length=1000000; set global max_allowed_packet=1000000000;"4 B+ T4 b% s; G) f' m

( U0 T1 d" V+ r8 l
[臬箏蝡喳臬亙啣虫唬蜓璈]
# k4 o/ z/ h3 K; T* j7 J) Omysqldump -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
# @; i5 m! Q, d7 }[閮剖臬乩(批2Mb) by phpmyadmin]
- r7 ?% Q4 y$ Whttp://www.av4u.info/forum.php?m ... e=1&extra=#pid20348
" ]$ P, O- y- ]8 s) E- ^) U
/ \5 }' Q: V4 Y: @( X& M2 v# E, t6 `/ T6 ?3 t
0 c% L& R0 T. O6 b/ t4 ?: _- ~

9 T& d/ }; N: c+ Q" ?3 Z
1 _) o3 ?" Q) {6 P9 m
4 Q1 J: \. D+ R+ O# T7 L
% O9 ~/ q! d' c# c! Y# w) s4 |$ N/ s# g/ l
$ M. [0 U( p- f

; P% e! c& K/ Y% I2 Q( n  ], g6 v; b$ |2 h
. V- Y5 M& L: j) p) G8 {

* Z! r( z- K: y5 m6 @% M/ D! l
8 W' G, P4 `# ?+ C* o

雿輻券

祉蝛閬

BT蝳

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

QQ|撠暺撅||52AV璈A

GMT+8, 2024-11-23 18:23 , Processed in 0.065523 second(s), 16 queries .

蝯∠.撱

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

鋆貉憒 敹恍敺 餈銵