|

楼主 |
发表于 2015-7-15 22:52:38
|
显示全部楼层
malong101 发表于 2015-7-15 21:04) z. y- v6 r2 R% @/ k: g
需要关闭 /usr/local/mysql/my.cnf 里面的 static table) R7 C2 @4 Z! s6 J1 O& r3 L
sql_mode=NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITU ... * T% _" Z9 Z; B& U; U
# For advice on how to change settings please see
9 r# y0 L5 K) a' I1 w+ O$ f y7 F# http://dev.mysql.com/doc/refman/5.6/en/server-configuration-defaults.html
0 c8 p" g m2 }# B/ O0 r* w. p3 U Q) o% Q; i7 o/ C3 t/ w
[mysqld]& n1 g3 M$ v3 d8 T
1 L8 y& `; T5 `# L( R, S' X
# Remove leading # and set to the amount of RAM for the most important data& ]3 q5 p3 f# a- J% @
# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.8 S; X; c) L. g( J- @" D
# innodb_buffer_pool_size = 128M
* }, x0 I* `* e+ @$ e# B+ m
1 X) |4 N7 o5 `0 @2 S+ b, r3 S# Remove leading # to turn on a very important data integrity option: logging
4 o; Q" b8 s- P# changes to the binary log between backups.
$ j6 Y X1 }8 }# log_bin
g! ]1 j; m- O- \0 Y" G' c' v
& G/ d- A4 U. c1 h0 u; T# These are commonly set, remove the # and set as required.
0 W' |. }% g/ B. ^# basedir = .....+ ?& F& r, x5 I3 D
# datadir = .....
9 A' _. O- I- V# port = .....
7 h1 E2 x* L8 H$ t) o* J: Q6 t" v# server_id = .....
6 J0 g* N. ^0 f1 h# socket = .....1 P+ r+ S; y' y+ j0 I" W0 b3 P
* B- l2 J+ q: c+ o
# Remove leading # to set options mainly useful for reporting servers.0 ~. U5 g8 e$ t; u
# The server defaults are faster for transactions and fast SELECTs.6 n: B. S" Z9 k2 a* S6 b2 Z# K
# Adjust sizes as needed, experiment to find the optimal values.8 X7 w9 L5 r9 K* U3 H2 ?
# join_buffer_size = 128M
% T- k9 D+ D1 y# sort_buffer_size = 2M
* V1 b9 M3 z; }% |* A, ~8 P4 W/ Y' T# read_rnd_buffer_size = 2M & i5 ?8 @ N1 i: b: M" f, e
6 |3 f4 M; q1 P/ L' m
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES ; I+ P) W( x, u) S& R5 ?
里面是这样的文件, 那个关闭啊? 师兄 |
|