質問編集履歴
3
質問内容の変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,299 +1,333 @@
|
|
1
1
|
Mysql Cominity Server 5.7.11にてmy.cnfの設定をしています。
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
・validate_password=OFF
|
6
|
-
|
7
3
|
・max_connections = 500
|
8
4
|
|
9
5
|
・文字コード:UTF8
|
10
6
|
|
11
7
|
・DBファイルシステム領域について(1000M)自動作成をする
|
12
8
|
|
13
|
-
|
9
|
+
・log_timestamps = 'system'
|
10
|
+
|
14
|
-
|
11
|
+
・lower_case_table_names = 2
|
12
|
+
|
15
|
-
事をしたいと思います。my.cnfを下記のように設定した
|
13
|
+
事をしたいと思います。my.cnfを下記のように設定しました。
|
16
|
-
|
14
|
+
|
17
|
-
|
15
|
+
ログ時刻は現在の時刻になっているみたいなのですが、最初の1行だけ時刻がずれているのは
|
16
|
+
|
18
|
-
|
17
|
+
何故でしょうか?デーモンユーザで起動しているのでしょうか?
|
19
|
-
|
20
|
-
|
18
|
+
|
21
|
-
|
19
|
+
lower_case_table_names = 2にしてもmysqlに反映されません。記述が間違っているのでしょうか?
|
20
|
+
|
22
|
-
|
21
|
+
また、起動ログで注意、エラーが多い気がするのですが、問題ないでしょうか?
|
23
|
-
|
24
22
|
|
25
23
|
必要のない記述があれば教えて下さい。
|
26
24
|
|
27
|
-
|
25
|
+
```my.cnf
|
26
|
+
|
28
|
-
|
27
|
+
# For advice on how to change settings please see
|
28
|
+
|
29
|
+
# http://dev.mysql.com/doc/refman/5.7/en/server-configuration-defaults.html
|
30
|
+
|
31
|
+
[mysqld]
|
32
|
+
|
33
|
+
#
|
34
|
+
|
35
|
+
# Remove leading # and set to the amount of RAM for the most important data
|
36
|
+
|
37
|
+
# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
|
38
|
+
|
39
|
+
# innodb_buffer_pool_size = 128M
|
40
|
+
|
41
|
+
#
|
42
|
+
|
43
|
+
# Remove leading # to turn on a very important data integrity option: logging
|
44
|
+
|
45
|
+
# changes to the binary log between backups.
|
46
|
+
|
47
|
+
# log_bin
|
48
|
+
|
49
|
+
#
|
50
|
+
|
51
|
+
# Remove leading # to set options mainly useful for reporting servers.
|
52
|
+
|
53
|
+
# The server defaults are faster for transactions and fast SELECTs.
|
54
|
+
|
29
|
-
|
55
|
+
# Adjust sizes as needed, experiment to find the optimal values.
|
56
|
+
|
57
|
+
# join_buffer_size = 128M
|
58
|
+
|
59
|
+
# sort_buffer_size = 2M
|
60
|
+
|
61
|
+
# read_rnd_buffer_size = 2M
|
62
|
+
|
63
|
+
log_timestamps = 'system'
|
64
|
+
|
65
|
+
lower_case_table_names = 2
|
66
|
+
|
67
|
+
datadir=/var/lib/mysql
|
68
|
+
|
69
|
+
socket=/var/lib/mysql/mysql.sock
|
70
|
+
|
71
|
+
# Disabling symbolic-links is recommended to prevent assorted security risks
|
72
|
+
|
73
|
+
symbolic-links=0
|
74
|
+
|
75
|
+
character-set-server = utf8
|
76
|
+
|
77
|
+
skip-character-set-client-handshake
|
78
|
+
|
79
|
+
# --------------------------------------------------
|
80
|
+
|
81
|
+
# Network
|
82
|
+
|
83
|
+
# --------------------------------------------------
|
84
|
+
|
85
|
+
max_connections = 500
|
86
|
+
|
87
|
+
# --------------------------------------------------
|
88
|
+
|
89
|
+
# Logging
|
90
|
+
|
91
|
+
# --------------------------------------------------
|
92
|
+
|
93
|
+
general_log=1
|
94
|
+
|
95
|
+
general_log_file=/var/log/mysql_query.log
|
96
|
+
|
97
|
+
# --------------------------------------------------
|
98
|
+
|
99
|
+
# Cache & Memory
|
100
|
+
|
101
|
+
# --------------------------------------------------
|
102
|
+
|
103
|
+
# Global
|
104
|
+
|
105
|
+
thread_cache_size = 30
|
106
|
+
|
107
|
+
table_open_cache = 400
|
108
|
+
|
109
|
+
query_cache_size = 16M
|
110
|
+
|
111
|
+
query_cache_limit = 1M
|
112
|
+
|
113
|
+
# Global, Session
|
114
|
+
|
115
|
+
max_heap_table_size = 16M
|
116
|
+
|
117
|
+
tmp_table_size = 16M
|
118
|
+
|
119
|
+
sort_buffer_size = 2M
|
120
|
+
|
121
|
+
read_buffer_size = 131072
|
122
|
+
|
123
|
+
join_buffer_size = 131072
|
124
|
+
|
125
|
+
read_rnd_buffer_size = 262144
|
126
|
+
|
127
|
+
# --------------------------------------------------------------------
|
128
|
+
|
129
|
+
# InnoDB behavior
|
130
|
+
|
131
|
+
# --------------------------------------------------------------------
|
132
|
+
|
133
|
+
# Global
|
134
|
+
|
135
|
+
innodb_file_format = Barracuda
|
136
|
+
|
137
|
+
innodb_write_io_threads = 4
|
138
|
+
|
139
|
+
innodb_read_io_threads = 4
|
140
|
+
|
141
|
+
innodb_stats_on_metadata = 1
|
142
|
+
|
143
|
+
innodb_max_dirty_pages_pct = 90
|
144
|
+
|
145
|
+
innodb_adaptive_hash_index = 1
|
146
|
+
|
147
|
+
innodb_adaptive_flushing = 1
|
148
|
+
|
149
|
+
innodb_strict_mode = 1
|
150
|
+
|
151
|
+
innodb_io_capacity = 200
|
152
|
+
|
153
|
+
innodb_autoinc_lock_mode = 1
|
154
|
+
|
155
|
+
innodb_change_buffering = inserts
|
156
|
+
|
157
|
+
innodb_old_blocks_time = 500
|
158
|
+
|
159
|
+
# --------------------------------------------------------------------
|
160
|
+
|
161
|
+
# InnoDB base
|
162
|
+
|
163
|
+
# --------------------------------------------------------------------
|
164
|
+
|
165
|
+
# Global
|
166
|
+
|
167
|
+
innodb_buffer_pool_size = 256M
|
168
|
+
|
169
|
+
innodb_data_home_dir = /var/lib/mysql
|
170
|
+
|
171
|
+
innodb_data_file_path = ibdata1:1000M:autoextend
|
172
|
+
|
173
|
+
innodb_file_per_table = 1
|
174
|
+
|
175
|
+
innodb_autoextend_increment = 64M
|
176
|
+
|
177
|
+
innodb_log_group_home_dir = /var/lib/mysql
|
178
|
+
|
179
|
+
innodb_fast_shutdown = 0
|
180
|
+
|
181
|
+
innodb_log_file_size = 64M
|
182
|
+
|
183
|
+
innodb_log_files_in_group = 2
|
184
|
+
|
185
|
+
innodb_log_buffer_size = 8M
|
186
|
+
|
187
|
+
#innodb_additional_mem_pool_size = 8M
|
188
|
+
|
189
|
+
innodb_thread_concurrency = 8
|
190
|
+
|
191
|
+
innodb_flush_log_at_trx_commit = 1
|
192
|
+
|
193
|
+
innodb_force_recovery = 0
|
194
|
+
|
195
|
+
innodb_doublewrite = 1
|
196
|
+
|
197
|
+
innodb_sync_spin_loops = 20
|
198
|
+
|
199
|
+
innodb_thread_sleep_delay = 1000
|
200
|
+
|
201
|
+
innodb_commit_concurrency = 0
|
202
|
+
|
203
|
+
innodb_concurrency_tickets = 500
|
204
|
+
|
205
|
+
# Global, Session
|
206
|
+
|
207
|
+
innodb_support_xa = FALSE
|
208
|
+
|
209
|
+
innodb_lock_wait_timeout = 50
|
210
|
+
|
211
|
+
innodb_table_locks = 1
|
212
|
+
|
213
|
+
[client]
|
214
|
+
|
215
|
+
default-character-set = utf8
|
216
|
+
|
217
|
+
[mysqldump]
|
218
|
+
|
219
|
+
default-character-set = utf8
|
220
|
+
|
221
|
+
[mysql]
|
222
|
+
|
223
|
+
default-character-set = utf8
|
224
|
+
|
225
|
+
[mysqld_safe]
|
226
|
+
|
227
|
+
log-error=/var/log/mysqld.log
|
228
|
+
|
229
|
+
pid-file=/var/run/mysqld/mysqld.pid
|
230
|
+
|
231
|
+
```
|
232
|
+
|
233
|
+
-----------------/var/log/mysqld.log-------------------
|
30
234
|
|
31
235
|
```ここに言語を入力
|
32
236
|
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
[m
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
m
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
# Global
|
126
|
-
|
127
|
-
thread_cache_size = 30
|
128
|
-
|
129
|
-
table_open_cache = 400
|
130
|
-
|
131
|
-
query_cache_size = 16M
|
132
|
-
|
133
|
-
query_cache_limit = 1M
|
134
|
-
|
135
|
-
# Global, Session
|
136
|
-
|
137
|
-
max_heap_table_size = 16M
|
138
|
-
|
139
|
-
tmp_table_size = 16M
|
140
|
-
|
141
|
-
sort_buffer_size = 2M
|
142
|
-
|
143
|
-
read_buffer_size = 131072
|
144
|
-
|
145
|
-
join_buffer_size = 131072
|
146
|
-
|
147
|
-
read_rnd_buffer_size = 262144
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
# --------------------------------------------------------------------
|
152
|
-
|
153
|
-
# InnoDB behavior
|
154
|
-
|
155
|
-
# --------------------------------------------------------------------
|
156
|
-
|
157
|
-
# Global
|
158
|
-
|
159
|
-
innodb_file_format = Barracuda
|
160
|
-
|
161
|
-
innodb_write_io_threads = 4
|
162
|
-
|
163
|
-
innodb_read_io_threads = 4
|
164
|
-
|
165
|
-
innodb_stats_on_metadata = 1
|
166
|
-
|
167
|
-
innodb_max_dirty_pages_pct = 90
|
168
|
-
|
169
|
-
innodb_adaptive_hash_index = 1
|
170
|
-
|
171
|
-
innodb_adaptive_flushing = 1
|
172
|
-
|
173
|
-
innodb_strict_mode = 1
|
174
|
-
|
175
|
-
innodb_io_capacity = 200
|
176
|
-
|
177
|
-
innodb_autoinc_lock_mode = 1
|
178
|
-
|
179
|
-
innodb_change_buffering = inserts
|
180
|
-
|
181
|
-
innodb_old_blocks_time = 500
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
# --------------------------------------------------------------------
|
186
|
-
|
187
|
-
# InnoDB base
|
188
|
-
|
189
|
-
# --------------------------------------------------------------------
|
190
|
-
|
191
|
-
# Global
|
192
|
-
|
193
|
-
innodb_buffer_pool_size = 256M
|
194
|
-
|
195
|
-
innodb_data_home_dir = /var/lib/mysql
|
196
|
-
|
197
|
-
innodb_data_file_path = ibdata1:1000M:autoextend
|
198
|
-
|
199
|
-
innodb_file_per_table = 1
|
200
|
-
|
201
|
-
innodb_autoextend_increment = 64M
|
202
|
-
|
203
|
-
innodb_log_group_home_dir = /var/lib/mysql
|
204
|
-
|
205
|
-
innodb_fast_shutdown = 0
|
206
|
-
|
207
|
-
innodb_log_file_size = 64M
|
208
|
-
|
209
|
-
innodb_log_files_in_group = 2
|
210
|
-
|
211
|
-
innodb_log_buffer_size = 8M
|
212
|
-
|
213
|
-
innodb_additional_mem_pool_size = 8M
|
214
|
-
|
215
|
-
innodb_thread_concurrency = 8
|
216
|
-
|
217
|
-
innodb_flush_log_at_trx_commit = 1
|
218
|
-
|
219
|
-
innodb_force_recovery = 0
|
220
|
-
|
221
|
-
innodb_doublewrite = 1
|
222
|
-
|
223
|
-
innodb_sync_spin_loops = 20
|
224
|
-
|
225
|
-
innodb_thread_sleep_delay = 1000
|
226
|
-
|
227
|
-
innodb_commit_concurrency = 0
|
228
|
-
|
229
|
-
innodb_concurrency_tickets = 500
|
230
|
-
|
231
|
-
# Global, Session
|
232
|
-
|
233
|
-
innodb_support_xa = FALSE
|
234
|
-
|
235
|
-
innodb_lock_wait_timeout = 50
|
236
|
-
|
237
|
-
innodb_table_locks = 1
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
[client]
|
244
|
-
|
245
|
-
default-character-set = utf8
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
[mysqldump]
|
250
|
-
|
251
|
-
default-character-set = utf8
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
[mysql]
|
256
|
-
|
257
|
-
default-character-set = utf8
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
[mysqld_safe]
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
log-error=/var/log/mysqld.log
|
266
|
-
|
267
|
-
pid-file=/var/run/mysqld/mysqld.pid
|
268
|
-
|
269
|
-
|
237
|
+
2016-03-08T08:54:41.930740Z mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
|
238
|
+
|
239
|
+
2016-03-08T17:54:42.139845+09:00 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
|
240
|
+
|
241
|
+
2016-03-08T17:54:42.140663+09:00 0 [Note] /usr/sbin/mysqld (mysqld 5.7.11-log) starting as process 21803 ...
|
242
|
+
|
243
|
+
2016-03-08T17:54:42.146232+09:00 0 [Warning] option 'innodb-autoextend-increment': unsigned value 67108864 adjusted to 1000
|
244
|
+
|
245
|
+
2016-03-08T17:54:42.146718+09:00 0 [Warning] InnoDB: Using innodb_support_xa is deprecated and the parameter may be removed in future releases. Only innodb_support_xa=ON is allowed.
|
246
|
+
|
247
|
+
2016-03-08T17:54:42.146740+09:00 0 [Warning] InnoDB: Using innodb_file_format is deprecated and the parameter may be removed in future releases. See http://dev.mysql.com/doc/refman/5.7/en/innodb-file-format.html
|
248
|
+
|
249
|
+
2016-03-08T17:54:42.146833+09:00 0 [Note] InnoDB: PUNCH HOLE support available
|
250
|
+
|
251
|
+
2016-03-08T17:54:42.146867+09:00 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
|
252
|
+
|
253
|
+
2016-03-08T17:54:42.146880+09:00 0 [Note] InnoDB: Uses event mutexes
|
254
|
+
|
255
|
+
2016-03-08T17:54:42.146890+09:00 0 [Note] InnoDB: GCC builtin __sync_synchronize() is used for memory barrier
|
256
|
+
|
257
|
+
2016-03-08T17:54:42.146900+09:00 0 [Note] InnoDB: Compressed tables use zlib 1.2.3
|
258
|
+
|
259
|
+
2016-03-08T17:54:42.146912+09:00 0 [Note] InnoDB: Using Linux native AIO
|
260
|
+
|
261
|
+
2016-03-08T17:54:42.147453+09:00 0 [Note] InnoDB: Number of pools: 1
|
262
|
+
|
263
|
+
2016-03-08T17:54:42.147610+09:00 0 [Note] InnoDB: Not using CPU crc32 instructions
|
264
|
+
|
265
|
+
2016-03-08T17:54:42.157075+09:00 0 [Note] InnoDB: Initializing buffer pool, total size = 256M, instances = 1, chunk size = 128M
|
266
|
+
|
267
|
+
2016-03-08T17:54:42.180181+09:00 0 [Note] InnoDB: Completed initialization of buffer pool
|
268
|
+
|
269
|
+
2016-03-08T17:54:42.184575+09:00 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
|
270
|
+
|
271
|
+
2016-03-08T17:54:42.197089+09:00 0 [Note] InnoDB: Highest supported file format is Barracuda.
|
272
|
+
|
273
|
+
2016-03-08T17:54:42.223241+09:00 0 [Note] InnoDB: Creating shared tablespace for temporary tables
|
274
|
+
|
275
|
+
2016-03-08T17:54:42.223353+09:00 0 [Note] InnoDB: Setting file '/var/lib/mysql/ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
|
276
|
+
|
277
|
+
2016-03-08T17:54:42.364921+09:00 0 [Note] InnoDB: File '/var/lib/mysql/ibtmp1' size is now 12 MB.
|
278
|
+
|
279
|
+
2016-03-08T17:54:42.366681+09:00 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active.
|
280
|
+
|
281
|
+
2016-03-08T17:54:42.366707+09:00 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active.
|
282
|
+
|
283
|
+
2016-03-08T17:54:42.368574+09:00 0 [Note] InnoDB: Waiting for purge to start
|
284
|
+
|
285
|
+
2016-03-08T17:54:42.418823+09:00 0 [Note] InnoDB: 5.7.11 started; log sequence number 1209999
|
286
|
+
|
287
|
+
2016-03-08T17:54:42.420939+09:00 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
|
288
|
+
|
289
|
+
2016-03-08T17:54:42.421367+09:00 0 [Note] Plugin 'FEDERATED' is disabled.
|
290
|
+
|
291
|
+
2016-03-08T17:54:42.421368+09:00 0 [Note] InnoDB: Buffer pool(s) load completed at 160308 17:54:42
|
292
|
+
|
293
|
+
2016-03-08T17:54:42.421969+09:00 0 [Warning] InnoDB: Cannot open table mysql/plugin from the internal data dictionary of InnoDB though the .frm file for the table exists. Please refer to http://dev.mysql.com/doc/refman/5.7/en/innodb-troubleshooting.html for how to resolve the issue.
|
294
|
+
|
295
|
+
mysqld: Table 'mysql.plugin' doesn't exist
|
296
|
+
|
297
|
+
2016-03-08T17:54:42.422038+09:00 0 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
|
298
|
+
|
299
|
+
mysqld: File '/var/log/mysql_query.log' not found (Errcode: 13 - Permission denied)
|
300
|
+
|
301
|
+
2016-03-08T17:54:42.422293+09:00 0 [ERROR] Could not use /var/log/mysql_query.log for logging (error 13 - Permission denied). Turning logging off for the server process. To turn it on again: fix the cause, then either restart the query logging by using "SET GLOBAL GENERAL_LOG=ON" or restart the MySQL server.
|
302
|
+
|
303
|
+
2016-03-08T17:54:42.423054+09:00 0 [Warning] InnoDB: Cannot open table mysql/gtid_executed from the internal data dictionary of InnoDB though the .frm file for the table exists. Please refer to http://dev.mysql.com/doc/refman/5.7/en/innodb-troubleshooting.html for how to resolve the issue.
|
304
|
+
|
305
|
+
mysqld: Table 'mysql.gtid_executed' doesn't exist
|
306
|
+
|
307
|
+
2016-03-08T17:54:42.423118+09:00 0 [Warning] Gtid table is not ready to be used. Table 'mysql.gtid_executed' cannot be opened.
|
308
|
+
|
309
|
+
2016-03-08T17:54:42.423163+09:00 0 [Note] Found ca.pem, server-cert.pem and server-key.pem in data directory. Trying to enable SSL support using them.
|
310
|
+
|
311
|
+
2016-03-08T17:54:42.423544+09:00 0 [Warning] CA certificate ca.pem is self signed.
|
312
|
+
|
313
|
+
2016-03-08T17:54:42.426320+09:00 0 [Note] Server hostname (bind-address): '*'; port: 3306
|
314
|
+
|
315
|
+
2016-03-08T17:54:42.427687+09:00 0 [Note] IPv6 is not available.
|
316
|
+
|
317
|
+
2016-03-08T17:54:42.427748+09:00 0 [Note] - '0.0.0.0' resolves to '0.0.0.0';
|
318
|
+
|
319
|
+
2016-03-08T17:54:42.427769+09:00 0 [Note] Server socket created on IP: '0.0.0.0'.
|
320
|
+
|
321
|
+
2016-03-08T17:54:42.431671+09:00 0 [Warning] InnoDB: Cannot open table mysql/server_cost from the internal data dictionary of InnoDB though the .frm file for the table exists. Please refer to http://dev.mysql.com/doc/refman/5.7/en/innodb-troubleshooting.html for how to resolve the issue.
|
322
|
+
|
323
|
+
2016-03-08T17:54:42.431711+09:00 0 [Warning] Failed to open optimizer cost constant tables
|
324
|
+
|
325
|
+
|
326
|
+
|
327
|
+
2016-03-08T17:54:42.432742+09:00 0 [Warning] InnoDB: Cannot open table mysql/time_zone_leap_second from the internal data dictionary of InnoDB though the .frm file for the table exists. Please refer to http://dev.mysql.com/doc/refman/5.7/en/innodb-troubleshooting.html for how to resolve the issue.
|
270
328
|
|
271
329
|
```
|
272
330
|
|
273
|
-
======================my.cnf==========================
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
--------------------/var/log/mysqld.log-------------------
|
278
|
-
|
279
|
-
```ここに言語を入力
|
280
|
-
|
281
|
-
2016-03-07T06:16:14.583794Z 0 [Warning] option 'innodb-autoextend-increment': unsigned value 67108864 adjusted to 1000
|
282
|
-
|
283
|
-
2016-03-07T06:16:14.584335Z 0 [Warning] InnoDB: Using innodb_support_xa is deprecated and the parameter may be removed in future releases. Only innodb_support_xa=ON is allowed.
|
284
|
-
|
285
|
-
2016-03-07T06:16:14.584356Z 0 [Warning] InnoDB: Using innodb_file_format is deprecated and the parameter may be removed in future releases. See http://dev.mysql.com/doc/refman/5.7/en/innodb-file-format.html
|
286
|
-
|
287
|
-
2016-03-07T06:16:17.142266Z 0 [Warning] InnoDB: New log files created, LSN=45790
|
288
|
-
|
289
|
-
2016-03-07T06:16:17.353250Z 0 [Warning] InnoDB: Creating foreign key constraint system tables.
|
290
|
-
|
291
|
-
2016-03-07T06:16:17.434115Z 0 [Warning] InnoDB: Cannot open table mysql/plugin from the internal data dictionary of InnoDB though the .frm file for the table exists. Please refer to http://dev.mysql.com/doc/refman/5.7/en/innodb-troubleshooting.html for how to resolve the issue.
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
```
|
296
|
-
|
297
331
|
-----------mysqld.log----
|
298
332
|
|
299
333
|
|
2
質問内容を具体的に修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -14,231 +14,287 @@
|
|
14
14
|
|
15
15
|
事をしたいと思います。my.cnfを下記のように設定したのですが、サービスが開始になりません。
|
16
16
|
|
17
|
-
|
17
|
+
InnoDBの設定を外したら、サービス開始になりますが、InnoDbを使いたく思います。
|
18
|
-
|
19
|
-
|
20
|
-
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
-
また、
|
21
|
+
また、OS側の時刻/var/log/mysqld.logに出力した、時刻に大幅なずれがあるのはどこか設定が悪いのでしょうか?
|
22
|
-
|
23
|
-
|
22
|
+
|
24
|
-
|
25
|
-
|
26
|
-
|
23
|
+
|
24
|
+
|
27
|
-
|
25
|
+
必要のない記述があれば教えて下さい。
|
28
26
|
|
29
27
|
|
30
28
|
|
31
29
|
========================my.cnf=================================
|
32
30
|
|
31
|
+
```ここに言語を入力
|
32
|
+
|
33
33
|
# For advice on how to change settings please see
|
34
34
|
|
35
35
|
# http://dev.mysql.com/doc/refman/5.7/en/server-configuration-defaults.html
|
36
36
|
|
37
37
|
|
38
38
|
|
39
|
-
|
40
|
-
|
41
39
|
[mysqld]
|
42
40
|
|
41
|
+
#
|
42
|
+
|
43
|
+
# Remove leading # and set to the amount of RAM for the most important data
|
44
|
+
|
45
|
+
# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
|
46
|
+
|
47
|
+
# innodb_buffer_pool_size = 128M
|
48
|
+
|
49
|
+
#
|
50
|
+
|
51
|
+
# Remove leading # to turn on a very important data integrity option: logging
|
52
|
+
|
43
|
-
#
|
53
|
+
# changes to the binary log between backups.
|
44
|
-
|
54
|
+
|
45
|
-
#
|
55
|
+
# log_bin
|
56
|
+
|
46
|
-
|
57
|
+
#
|
58
|
+
|
59
|
+
# Remove leading # to set options mainly useful for reporting servers.
|
60
|
+
|
61
|
+
# The server defaults are faster for transactions and fast SELECTs.
|
62
|
+
|
47
|
-
#
|
63
|
+
# Adjust sizes as needed, experiment to find the optimal values.
|
48
|
-
|
64
|
+
|
49
|
-
use
|
65
|
+
# join_buffer_size = 128M
|
50
|
-
|
66
|
+
|
51
|
-
|
67
|
+
# sort_buffer_size = 2M
|
68
|
+
|
52
|
-
|
69
|
+
# read_rnd_buffer_size = 2M
|
70
|
+
|
53
|
-
datadir
|
71
|
+
datadir=/var/lib/mysql
|
54
|
-
|
72
|
+
|
55
|
-
socket
|
73
|
+
socket=/var/lib/mysql/mysql.sock
|
56
|
-
|
74
|
+
|
75
|
+
|
76
|
+
|
57
|
-
|
77
|
+
# Disabling symbolic-links is recommended to prevent assorted security risks
|
58
|
-
|
78
|
+
|
59
|
-
symbolic-links
|
79
|
+
symbolic-links=0
|
60
|
-
|
61
|
-
|
80
|
+
|
62
|
-
|
63
|
-
|
81
|
+
|
64
|
-
|
65
|
-
|
82
|
+
|
83
|
+
|
66
84
|
|
67
85
|
character-set-server = utf8
|
68
86
|
|
69
|
-
collation-server = utf8_general_ci
|
70
|
-
|
71
87
|
skip-character-set-client-handshake
|
72
88
|
|
73
89
|
|
74
90
|
|
91
|
+
# --------------------------------------------------
|
92
|
+
|
93
|
+
# Network
|
94
|
+
|
95
|
+
# --------------------------------------------------
|
96
|
+
|
97
|
+
|
98
|
+
|
75
99
|
max_connections = 500
|
76
100
|
|
101
|
+
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
# --------------------------------------------------
|
106
|
+
|
107
|
+
# Logging
|
108
|
+
|
109
|
+
# --------------------------------------------------
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
general_log=1
|
114
|
+
|
115
|
+
general_log_file=/var/log/mysql_query.log
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
# --------------------------------------------------
|
120
|
+
|
121
|
+
# Cache & Memory
|
122
|
+
|
123
|
+
# --------------------------------------------------
|
124
|
+
|
125
|
+
# Global
|
126
|
+
|
127
|
+
thread_cache_size = 30
|
128
|
+
|
77
|
-
|
129
|
+
table_open_cache = 400
|
130
|
+
|
78
|
-
|
131
|
+
query_cache_size = 16M
|
132
|
+
|
79
|
-
|
133
|
+
query_cache_limit = 1M
|
134
|
+
|
135
|
+
# Global, Session
|
136
|
+
|
137
|
+
max_heap_table_size = 16M
|
138
|
+
|
139
|
+
tmp_table_size = 16M
|
140
|
+
|
141
|
+
sort_buffer_size = 2M
|
142
|
+
|
143
|
+
read_buffer_size = 131072
|
144
|
+
|
145
|
+
join_buffer_size = 131072
|
146
|
+
|
147
|
+
read_rnd_buffer_size = 262144
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
# --------------------------------------------------------------------
|
152
|
+
|
153
|
+
# InnoDB behavior
|
154
|
+
|
155
|
+
# --------------------------------------------------------------------
|
156
|
+
|
157
|
+
# Global
|
158
|
+
|
159
|
+
innodb_file_format = Barracuda
|
160
|
+
|
161
|
+
innodb_write_io_threads = 4
|
162
|
+
|
163
|
+
innodb_read_io_threads = 4
|
164
|
+
|
165
|
+
innodb_stats_on_metadata = 1
|
166
|
+
|
167
|
+
innodb_max_dirty_pages_pct = 90
|
168
|
+
|
169
|
+
innodb_adaptive_hash_index = 1
|
170
|
+
|
171
|
+
innodb_adaptive_flushing = 1
|
172
|
+
|
173
|
+
innodb_strict_mode = 1
|
174
|
+
|
175
|
+
innodb_io_capacity = 200
|
176
|
+
|
177
|
+
innodb_autoinc_lock_mode = 1
|
178
|
+
|
179
|
+
innodb_change_buffering = inserts
|
180
|
+
|
181
|
+
innodb_old_blocks_time = 500
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
# --------------------------------------------------------------------
|
186
|
+
|
187
|
+
# InnoDB base
|
188
|
+
|
189
|
+
# --------------------------------------------------------------------
|
190
|
+
|
191
|
+
# Global
|
192
|
+
|
193
|
+
innodb_buffer_pool_size = 256M
|
194
|
+
|
195
|
+
innodb_data_home_dir = /var/lib/mysql
|
196
|
+
|
197
|
+
innodb_data_file_path = ibdata1:1000M:autoextend
|
198
|
+
|
199
|
+
innodb_file_per_table = 1
|
200
|
+
|
201
|
+
innodb_autoextend_increment = 64M
|
202
|
+
|
203
|
+
innodb_log_group_home_dir = /var/lib/mysql
|
204
|
+
|
205
|
+
innodb_fast_shutdown = 0
|
206
|
+
|
207
|
+
innodb_log_file_size = 64M
|
208
|
+
|
209
|
+
innodb_log_files_in_group = 2
|
210
|
+
|
211
|
+
innodb_log_buffer_size = 8M
|
212
|
+
|
213
|
+
innodb_additional_mem_pool_size = 8M
|
214
|
+
|
215
|
+
innodb_thread_concurrency = 8
|
216
|
+
|
217
|
+
innodb_flush_log_at_trx_commit = 1
|
218
|
+
|
219
|
+
innodb_force_recovery = 0
|
220
|
+
|
221
|
+
innodb_doublewrite = 1
|
222
|
+
|
223
|
+
innodb_sync_spin_loops = 20
|
224
|
+
|
225
|
+
innodb_thread_sleep_delay = 1000
|
226
|
+
|
227
|
+
innodb_commit_concurrency = 0
|
228
|
+
|
229
|
+
innodb_concurrency_tickets = 500
|
230
|
+
|
231
|
+
# Global, Session
|
232
|
+
|
233
|
+
innodb_support_xa = FALSE
|
234
|
+
|
235
|
+
innodb_lock_wait_timeout = 50
|
236
|
+
|
237
|
+
innodb_table_locks = 1
|
238
|
+
|
239
|
+
|
240
|
+
|
241
|
+
|
242
|
+
|
243
|
+
[client]
|
244
|
+
|
245
|
+
default-character-set = utf8
|
80
246
|
|
81
247
|
|
82
248
|
|
83
|
-
# --------------------------------------------------
|
84
|
-
|
85
|
-
# Cache & Memory
|
86
|
-
|
87
|
-
# --------------------------------------------------
|
88
|
-
|
89
|
-
|
249
|
+
[mysqldump]
|
90
|
-
|
91
|
-
|
250
|
+
|
92
|
-
|
93
|
-
table_open_cache = 400
|
94
|
-
|
95
|
-
query_cache_size = 16M
|
96
|
-
|
97
|
-
query_cache_limit = 1M
|
98
|
-
|
99
|
-
# Global, Session
|
100
|
-
|
101
|
-
max_heap_table_size = 16M
|
102
|
-
|
103
|
-
tmp_table_size = 16M
|
104
|
-
|
105
|
-
sort_buffer_size = 2M
|
106
|
-
|
107
|
-
read_buffer_size = 131072
|
108
|
-
|
109
|
-
join_buffer_size = 131072
|
110
|
-
|
111
|
-
|
251
|
+
default-character-set = utf8
|
112
252
|
|
113
253
|
|
114
254
|
|
115
|
-
|
116
|
-
|
117
|
-
# --------------------------------------------------------------------
|
118
|
-
|
119
|
-
# InnoDB behavior
|
120
|
-
|
121
|
-
# --------------------------------------------------------------------
|
122
|
-
|
123
|
-
# Global
|
124
|
-
|
125
|
-
innodb_file_format = Barracuda
|
126
|
-
|
127
|
-
innodb_write_io_threads = 4
|
128
|
-
|
129
|
-
innodb_read_io_threads = 4
|
130
|
-
|
131
|
-
innodb_stats_on_metadata = 1
|
132
|
-
|
133
|
-
innodb_max_dirty_pages_pct = 90
|
134
|
-
|
135
|
-
innodb_adaptive_hash_index = 1
|
136
|
-
|
137
|
-
innodb_adaptive_flushing = 1
|
138
|
-
|
139
|
-
innodb_strict_mode = 1
|
140
|
-
|
141
|
-
innodb_io_capacity = 200
|
142
|
-
|
143
|
-
innodb_autoinc_lock_mode = 1
|
144
|
-
|
145
|
-
innodb_change_buffering = inserts
|
146
|
-
|
147
|
-
innodb_old_blocks_time = 500
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
# --------------------------------------------------------------------
|
152
|
-
|
153
|
-
# InnoDB base
|
154
|
-
|
155
|
-
# --------------------------------------------------------------------
|
156
|
-
|
157
|
-
# Global
|
158
|
-
|
159
|
-
innodb_buffer_pool_size = 256M
|
160
|
-
|
161
|
-
innodb_data_home_dir = /var/lib/mysql
|
162
|
-
|
163
|
-
innodb_data_file_path = ibdata1:1000M:autoextend
|
164
|
-
|
165
|
-
innodb_file_per_table = 1
|
166
|
-
|
167
|
-
innodb_autoextend_increment = 64M
|
168
|
-
|
169
|
-
innodb_log_group_home_dir = /var/lib/mysql
|
170
|
-
|
171
|
-
innodb_fast_shutdown = 0
|
172
|
-
|
173
|
-
innodb_log_file_size = 64M
|
174
|
-
|
175
|
-
innodb_log_files_in_group = 2
|
176
|
-
|
177
|
-
innodb_log_buffer_size = 8M
|
178
|
-
|
179
|
-
innodb_additional_mem_pool_size = 8M
|
180
|
-
|
181
|
-
innodb_thread_concurrency = 8
|
182
|
-
|
183
|
-
innodb_flush_log_at_trx_commit = 1
|
184
|
-
|
185
|
-
innodb_force_recovery = 0
|
186
|
-
|
187
|
-
innodb_doublewrite = 1
|
188
|
-
|
189
|
-
innodb_sync_spin_loops = 20
|
190
|
-
|
191
|
-
innodb_thread_sleep_delay = 1000
|
192
|
-
|
193
|
-
innodb_commit_concurrency = 0
|
194
|
-
|
195
|
-
innodb_concurrency_tickets = 500
|
196
|
-
|
197
|
-
# Global, Session
|
198
|
-
|
199
|
-
innodb_support_xa = FALSE
|
200
|
-
|
201
|
-
innodb_lock_wait_timeout = 50
|
202
|
-
|
203
|
-
innodb_table_locks = 1
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
[mysql
|
255
|
+
[mysql]
|
208
256
|
|
209
257
|
default-character-set = utf8
|
210
258
|
|
211
|
-
|
259
|
+
|
212
|
-
|
213
|
-
max_allowed_packet = 16M
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
[mysql]
|
218
|
-
|
219
|
-
default-character-set = utf8
|
220
|
-
|
221
|
-
no-auto-rehash
|
222
|
-
|
223
|
-
show-warnings
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
[client]
|
228
|
-
|
229
|
-
default-character-set = utf8
|
230
|
-
|
231
|
-
port = 3306
|
232
|
-
|
233
|
-
socket = /var/lib/mysql/mysql.sock
|
234
|
-
|
235
|
-
|
236
260
|
|
237
261
|
[mysqld_safe]
|
238
262
|
|
239
|
-
|
240
|
-
|
241
|
-
=
|
263
|
+
|
264
|
+
|
265
|
+
log-error=/var/log/mysqld.log
|
266
|
+
|
267
|
+
pid-file=/var/run/mysqld/mysqld.pid
|
268
|
+
|
269
|
+
|
270
|
+
|
271
|
+
```
|
272
|
+
|
273
|
+
======================my.cnf==========================
|
274
|
+
|
275
|
+
|
276
|
+
|
277
|
+
--------------------/var/log/mysqld.log-------------------
|
278
|
+
|
279
|
+
```ここに言語を入力
|
280
|
+
|
281
|
+
2016-03-07T06:16:14.583794Z 0 [Warning] option 'innodb-autoextend-increment': unsigned value 67108864 adjusted to 1000
|
282
|
+
|
283
|
+
2016-03-07T06:16:14.584335Z 0 [Warning] InnoDB: Using innodb_support_xa is deprecated and the parameter may be removed in future releases. Only innodb_support_xa=ON is allowed.
|
284
|
+
|
285
|
+
2016-03-07T06:16:14.584356Z 0 [Warning] InnoDB: Using innodb_file_format is deprecated and the parameter may be removed in future releases. See http://dev.mysql.com/doc/refman/5.7/en/innodb-file-format.html
|
286
|
+
|
287
|
+
2016-03-07T06:16:17.142266Z 0 [Warning] InnoDB: New log files created, LSN=45790
|
288
|
+
|
289
|
+
2016-03-07T06:16:17.353250Z 0 [Warning] InnoDB: Creating foreign key constraint system tables.
|
290
|
+
|
291
|
+
2016-03-07T06:16:17.434115Z 0 [Warning] InnoDB: Cannot open table mysql/plugin from the internal data dictionary of InnoDB though the .frm file for the table exists. Please refer to http://dev.mysql.com/doc/refman/5.7/en/innodb-troubleshooting.html for how to resolve the issue.
|
292
|
+
|
293
|
+
|
294
|
+
|
295
|
+
```
|
296
|
+
|
297
|
+
-----------mysqld.log----
|
242
298
|
|
243
299
|
|
244
300
|
|
1
必要のない記述を教えて下さい。
test
CHANGED
File without changes
|
test
CHANGED
@@ -24,6 +24,10 @@
|
|
24
24
|
|
25
25
|
|
26
26
|
|
27
|
+
また、必要のない記述があれば教えて下さい。
|
28
|
+
|
29
|
+
|
30
|
+
|
27
31
|
========================my.cnf=================================
|
28
32
|
|
29
33
|
# For advice on how to change settings please see
|