52AV璈A|52AV.ONE

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

[mysql] MySQL 臬箏臬交隞

[銴鋆賡包
頝唾唳摰璅撅
璅銝
潸” 2015-6-23 08:22:56 | 芰閰脖 撣 |摨閬 |梯璅∪
[臬榜
& D+ U3 ^" ]( n# j! omysqldump -u userid -e -p db_Name > xxxxx.sql
' ]4 m2 b3 y7 K; i7 z臬箔table:mysqldump -p -u userid dbname tablename > 52avtv_dzx20.201506242307.sql
( ?+ K8 b4 g6 U5 U- {- Z. B臬箸鞈摨: mysqldump -p -u userid --all-databases > all-database.sql            ! |7 |2 B  Q. u( M/ c
       雿,臬啁桃鞈摨怎雿輻刻撣唾撖蝣潭憿,隞仿舀鞈摨怠交,雿輻刻撣唾銋亙臬箸頛摰
2 I6 ]' z( X, [5 w0 U) C8 V/ J! e[芸臬箇瑽]  : https://iter01.com/206843.html
+ G+ _5 h, p0 Ymysqldump--opt-d鞈摨怠-uroot-p>xxx.sql$ ?5 \; p& i, s4 R+ T' K
[芸臬箄]
3 R! A6 p/ y. C* e9 h1 A5 amysqldump-t鞈摨怠-uroot-p>xxx.sql
, w& I2 B! w. G# ], N" U
2 r* c3 k8 y. s8 ]% b
瘜冽:    嗡誑銝餈唳隞文隞賣蝬脩箇 "502 bad gateway",敶梢踹迸ginx,芾 --single-transaction --quick 撠勗末鈭,憒銝:
+ z  p: P! w+ M! jmysqldump -u userid -e -p --single-transaction --quick db_Name > xxxxx.sql: H7 r3 |$ H  [6 ~& I1 ?' w! \
憿:mysqldump: Got error: 1017: Can't find file: 'pre_forum_rsscache' (errno: 2) when using LOCK TABLES) D* Z7 Q% S! y
Sol: 芾皂ysqldump銝--lock-tables=false撠勗臭誑閫瘙箏憿
' n6 r# e5 Q# k/ P亥箇: 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瑼:
, T/ \) ^! x: Y. s1 W" O-rw-rw---- 1 mysql mysql 8852 Jun  3 16:05 pre_forum_rsscache.frm
" ^* ?& w* {+ H-rw-rw---- 1 mysql mysql    0 Jun  3 16:05 pre_forum_rsscache.MYD
+ |8 d3 R' @# N# U' Q$ T-rw-rw---- 1 mysql mysql 1024 Jun  3 16:05 pre_forum_rsscache.MYI
- Y) q! `- f% q/ o- ASol:

5 A% M: @% J* n/ I3 a* x5 {0 D私hpmyadmin ==SQL 銝隞:2 W: O, G( y4 {* Q! G# l) i
  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
銴鋆賭誨蝣

/ G$ w' [/ s/ b3 c; i隞賢停甇撣訾! p1 f& Z3 W0 P3 z
憿:  嗡蝙皂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. Z8 Q5 g/ p, X& G( JSol:  open_files_limit(default=962) 憭芸,寧4096,望澆撅祆廝ead-only,/etc/my.cnf
; Y1 m2 J% s2 g1 H/ T: P嗅 service mariadb restart
8 a6 f9 p- F2 Y$ i' h! b
$ L- d1 S; d7 U2 ]# q  x; w% C- l[璇隞嗅臬榜
" r# b- q# _, ^; N  Nmysqldump -u撣唾 -p撖蝣 -h銝餅 鞈摨 鞈銵 -w "sql璇隞" > 箄撓頝臬瑼獢
( g; X: y+ Y# F5 Q% h- ~靘:2 |# q1 y( X' [
mysqldump -uroot -p123456 -hlocalhost -e AREA_UTF8 city -w "c_id<10 " > /home/web/a.txt6 t+ K$ b) j4 [9 ~# A- ]

$ E7 |: p8 B% C--no-create-info嚗-t3 h6 {: h3 Q# R4 t
芸箄嚗銝瘛餃 CREATE TABLE 隤伐憒撠箸澆搴QL隤伐芣insert into典0 l8 y8 |6 P7 d$ ?- Z. [, b
--no-data嚗-d
( ~- |) t$ e$ p- V+ }銝撠箔遙雿鞈嚗芸箄摨怎瑽
3 X$ f2 N# j: ~  t% w--quick嚗-q
- K7 M1 V  @6 X3 d0 R4 k典箏之鞈敺剁撘瑕嗅 MySQL Server 亥岷敺閮湔亥撓綽銝臬敺閮敺摮刻園銝准
. R+ g+ P. t: z( m* ]6 N: L3 b" h+ q9 q$ `

5 \9 R+ b  m: ]" V2 j6 c[臬包
. z% d  O- m0 |mysql -u userid -p [-h localhost] db_Name < xxxxx.sql
4 u+ H- }6 F3 H2 y) g/ q( b2 B! T臬交鞈摨:   mysql -u userid -p < all-database.sql% ^8 E: }. J$ Q" B0 f7 C
臬乩table :5 Y7 `+ Q1 y7 U* n
mysql -u userid -p -D dbname < cc5278_dzx20.ip2c.201506242307.sql
# |( F2 Y" w2 s" N0 E5 OP.S憒臬交憭芸之憒7GB,臬交獢銋瑁銝隞:
0 ?0 p: t- d2 m4 {5 umysql -uroot -p -e "set global net_buffer_length=1000000; set global max_allowed_packet=1000000000;"; A" w! H/ Q* S7 m. z

2 n/ t# f/ r' B9 ]' o1 ?7 g' v
[臬箏蝡喳臬亙啣虫唬蜓璈]" |' c# D( b- [3 b
mysqldump -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 " |  A# y3 F6 l6 M
[閮剖臬乩(批2Mb) by phpmyadmin]
6 c! C) r8 I0 S, t; ^3 jhttp://www.av4u.info/forum.php?m ... e=1&extra=#pid20348
$ \1 y% o  l8 ?# y1 n) D7 ?8 `6 K. Z. g. b0 A4 W
* n; n( p' Y: q% X

9 @* H/ p9 x6 D2 P" y! g* Y8 U- u0 H2 ?

0 h7 D' o& v5 S7 A1 u; j6 d: J7 P. N) b( n

- u% f9 t3 b, ?0 N  b8 y, ~- w* L% t' w; B3 Z# Z
. h4 c; R. N& o
" ~0 P7 R4 ?) h8 {) w$ S, a

- v& m" V4 U  W
" D: c2 F( e: k3 z" P, V/ R) r; B$ B- }, W- {+ F

$ q2 Y2 b6 a2 A* F  ~

雿輻券

祉蝛閬

BT蝳

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

QQ|撠暺撅||52AV璈A

GMT+8, 2024-11-21 19:34 , Processed in 0.061484 second(s), 16 queries .

蝯∠.撱

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

鋆貉憒 敹恍敺 餈銵