|
|

楼主 |
发表于 2015-7-15 22:52:38
|
显示全部楼层
malong101 发表于 2015-7-15 21:048 E! W" {, T0 Q5 Z
需要关闭 /usr/local/mysql/my.cnf 里面的 static table
( N3 V8 K9 A# k# E2 G7 D/ N" @( @sql_mode=NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITU ...
- |7 _& {* d2 p, B# For advice on how to change settings please see2 e" q. B1 u+ N% e" G
# http://dev.mysql.com/doc/refman/5.6/en/server-configuration-defaults.html
6 i7 y1 \! h$ w1 l% w/ Q
4 R/ c/ _! Q0 Z1 Q) l; k* F% B& u[mysqld]1 A7 c, h( L$ B* P; f- B) e; P
) G: G* y8 {4 e# Y# Remove leading # and set to the amount of RAM for the most important data
! Z7 I; r, ^% W4 i# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.9 ?5 ^) C0 y# |5 a) |
# innodb_buffer_pool_size = 128M
- a5 s \. K6 I$ [) {
5 l9 [9 \9 h! H1 l4 O3 J# V# Remove leading # to turn on a very important data integrity option: logging
: ]9 R' @9 M2 B5 j/ ?( R# changes to the binary log between backups.
8 W9 O8 _+ J$ h5 k# log_bin2 B/ p$ A6 h/ T- Q1 {
; P7 d @0 u7 A* f3 y$ B# These are commonly set, remove the # and set as required. g! X+ x& Z: a1 R. @) ` K' a. T
# basedir = .....1 @) y9 c2 }$ }2 k
# datadir = .....+ f3 ` J8 y1 Q7 V0 M1 t0 t
# port = .....8 C/ J- o' ]; T1 D
# server_id = ...../ N1 N1 `# P9 _ T9 V0 K- h
# socket = .....
+ M% ]7 c: b2 z! Q4 Q' G$ s* N, z9 X3 i& h1 i
# Remove leading # to set options mainly useful for reporting servers.
, S/ g% g% o9 W6 H# The server defaults are faster for transactions and fast SELECTs.& ~0 q; M; W/ {& h6 L8 A/ Q7 g
# Adjust sizes as needed, experiment to find the optimal values.
9 ]8 m. J4 ]! \# join_buffer_size = 128M
- d+ a" k; x+ L. H1 \# sort_buffer_size = 2M
k" P: ]% A7 q! k# read_rnd_buffer_size = 2M _/ {5 m. W* ~' R- t
+ f. f- S6 C# r7 |* M
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES ' O1 A: b- K# V H% |
里面是这样的文件, 那个关闭啊? 师兄 |
|