|
|
楼主 |
发表于 2021-9-18 07:18:11
|
显示全部楼层
没有办法,自己来了....
( @) r& r, w- F
- {' x& W% H) |/ B0 Y5 n: T在网上找了些参数,自己加了进去,有没有不合适的?2 V% I9 f4 u3 G& J' q
VPS: 4core/6Gb Ram
% s& ~' o/ q# m: {0 J6 r1 l5 {# G/ D, m8 e" o4 u; F
- [mysqld]
$ h5 F( U% H E4 |: M5 j
5 l: a# J, r6 Q# G) H: ~& @; I- default-storage-engine=MYISAM1 `8 L3 y3 C! F. p1 H: I M
( i q, R) t! Y3 J4 p# B+ a$ |; [6 M- local-infile=0* h) Q Y" ~3 ?9 W L+ Q1 d
- % P9 C6 }' O: g+ r. a* `
- innodb_file_per_table=14 ^* ^2 Z2 Q, R. X9 s: l! @9 V
- 9 D4 _3 P0 L* V+ h7 W' j
- max_allowed_packet=64M* e4 I0 Z' x# W% T
( _7 J) v% w5 i& q- query_cache_limit=4M+ m* i9 X2 R0 M- ^) P% |
- 0 ^2 ~1 D0 ^$ @! p- S
- query_cache_size=128M7 i( X+ `) \! |# n0 s
- $ X; X4 I2 x/ ~: E! [) h7 P1 C, ?
- query_cache_type=1) Y7 B d1 [- Q, E4 s1 W2 s
* Y6 C! h0 B5 o$ }! H1 E' r, D9 i- innodb_flush_log_at_trx_commit=25 X6 x& Z8 ^. q- v4 w6 K1 ~! O. L; g+ L
- ; C" c2 C/ d1 M1 u
- innodb_lock_wait_timeout=200
, ^% m1 s) j5 G- R" D# o8 D
X, a0 }) k: }' |* O" j- max_connections=500
* k! s2 v1 l5 |" w
' ]8 m3 e' P: l# s+ i- max_user_connections=458 h1 p8 h5 \0 X
- / \; M" U$ R# C
- open_files_limit = 100000
复制代码
- ~) a1 a" {( r5 p. U5 u$ `& b: S! g8 k1 b4 |3 A
: K' h f& B! Z$ U/ v |
|