質問編集履歴
1
iniの途中まで載せました
test
CHANGED
File without changes
|
test
CHANGED
@@ -40,12 +40,478 @@
|
|
40
40
|
|
41
41
|
2019-10-31T07:45:32.409326Z 0 [Warning] Failed to set up SSL because of the following SSL library error: SSL context is not usable without certificate and private key
|
42
42
|
|
43
|
-
|
44
|
-
|
45
43
|
2019-10-31T08:14:27.103784Z 0 [Warning] C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqld.exe: Forcing close of thread 8 user: 'root'
|
46
44
|
|
47
45
|
```
|
48
46
|
|
47
|
+
### my.ini
|
48
|
+
|
49
|
+
|
50
|
+
|
51
|
+
```
|
52
|
+
|
53
|
+
# Other default tuning values
|
54
|
+
|
55
|
+
# MySQL Server Instance Configuration File
|
56
|
+
|
57
|
+
# ----------------------------------------------------------------------
|
58
|
+
|
59
|
+
# Generated by the MySQL Server Instance Configuration Wizard
|
60
|
+
|
61
|
+
#
|
62
|
+
|
63
|
+
#
|
64
|
+
|
65
|
+
# Installation Instructions
|
66
|
+
|
67
|
+
# ----------------------------------------------------------------------
|
68
|
+
|
69
|
+
#
|
70
|
+
|
71
|
+
# On Linux you can copy this file to /etc/my.cnf to set global options,
|
72
|
+
|
73
|
+
# mysql-data-dir/my.cnf to set server-specific options
|
74
|
+
|
75
|
+
# (@localstatedir@ for this installation) or to
|
76
|
+
|
77
|
+
# ~/.my.cnf to set user-specific options.
|
78
|
+
|
79
|
+
#
|
80
|
+
|
81
|
+
# On Windows you should keep this file in the installation directory
|
82
|
+
|
83
|
+
# of your server (e.g. C:\Program Files\MySQL\MySQL Server X.Y). To
|
84
|
+
|
85
|
+
# make sure the server reads the config file use the startup option
|
86
|
+
|
87
|
+
# "--defaults-file".
|
88
|
+
|
89
|
+
#
|
90
|
+
|
91
|
+
# To run the server from the command line, execute this in a
|
92
|
+
|
93
|
+
# command line shell, e.g.
|
94
|
+
|
95
|
+
# mysqld --defaults-file="C:\Program Files\MySQL\MySQL Server X.Y\my.ini"
|
96
|
+
|
97
|
+
#
|
98
|
+
|
99
|
+
# To install the server as a Windows service manually, execute this in a
|
100
|
+
|
101
|
+
# command line shell, e.g.
|
102
|
+
|
103
|
+
# mysqld --install MySQLXY --defaults-file="C:\Program Files\MySQL\MySQL Server X.Y\my.ini"
|
104
|
+
|
105
|
+
#
|
106
|
+
|
107
|
+
# And then execute this in a command line shell to start the server, e.g.
|
108
|
+
|
109
|
+
# net start MySQLXY
|
110
|
+
|
111
|
+
#
|
112
|
+
|
113
|
+
#
|
114
|
+
|
115
|
+
# Guidelines for editing this file
|
116
|
+
|
117
|
+
# ----------------------------------------------------------------------
|
118
|
+
|
119
|
+
#
|
120
|
+
|
121
|
+
# In this file, you can use all long options that the program supports.
|
122
|
+
|
123
|
+
# If you want to know the options a program supports, start the program
|
124
|
+
|
125
|
+
# with the "--help" option.
|
126
|
+
|
127
|
+
#
|
128
|
+
|
129
|
+
# More detailed information about the individual options can also be
|
130
|
+
|
131
|
+
# found in the manual.
|
132
|
+
|
133
|
+
#
|
134
|
+
|
135
|
+
# For advice on how to change settings please see
|
136
|
+
|
137
|
+
# https://dev.mysql.com/doc/refman/5.7/en/server-configuration-defaults.html
|
138
|
+
|
139
|
+
#
|
140
|
+
|
141
|
+
#
|
142
|
+
|
143
|
+
# CLIENT SECTION
|
144
|
+
|
145
|
+
# ----------------------------------------------------------------------
|
146
|
+
|
147
|
+
#
|
148
|
+
|
149
|
+
# The following options will be read by MySQL client applications.
|
150
|
+
|
151
|
+
# Note that only client applications shipped by MySQL are guaranteed
|
152
|
+
|
153
|
+
# to read this section. If you want your own MySQL client program to
|
154
|
+
|
155
|
+
# honor these values, you need to specify it as an option during the
|
156
|
+
|
157
|
+
# MySQL client library initialization.
|
158
|
+
|
159
|
+
#
|
160
|
+
|
161
|
+
[client]
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
# pipe=
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
# socket=MYSQL
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
port=3306
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
[mysql]
|
178
|
+
|
179
|
+
no-beep
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
# default-character-set=
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
# SERVER SECTION
|
188
|
+
|
189
|
+
# ----------------------------------------------------------------------
|
190
|
+
|
191
|
+
#
|
192
|
+
|
193
|
+
# The following options will be read by the MySQL Server. Make sure that
|
194
|
+
|
195
|
+
# you have installed the server correctly (see above) so it reads this
|
196
|
+
|
197
|
+
# file.
|
198
|
+
|
199
|
+
#
|
200
|
+
|
201
|
+
# server_type=2
|
202
|
+
|
203
|
+
[mysqld]
|
204
|
+
|
205
|
+
default-time-zone = 'Japan'
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
# The next three options are mutually exclusive to SERVER_PORT below.
|
210
|
+
|
211
|
+
# skip-networking
|
212
|
+
|
213
|
+
# enable-named-pipe
|
214
|
+
|
215
|
+
# shared-memory
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
# shared-memory-base-name=MYSQL
|
220
|
+
|
221
|
+
|
222
|
+
|
223
|
+
# The Pipe the MySQL Server will use
|
224
|
+
|
225
|
+
# socket=MYSQL
|
226
|
+
|
227
|
+
|
228
|
+
|
229
|
+
# The TCP/IP Port the MySQL Server will listen on
|
230
|
+
|
231
|
+
port=3306
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
# Path to installation directory. All paths are usually resolved relative to this.
|
236
|
+
|
237
|
+
# basedir="C:/Program Files/MySQL/MySQL Server 5.7/"
|
238
|
+
|
239
|
+
|
240
|
+
|
241
|
+
# Path to the database root
|
242
|
+
|
243
|
+
datadir=C:/ProgramData/MySQL/MySQL Server 5.7/Data
|
244
|
+
|
245
|
+
|
246
|
+
|
247
|
+
# The default character set that will be used when a new schema or table is
|
248
|
+
|
249
|
+
# created and no character set is defined
|
250
|
+
|
251
|
+
# character-set-server=
|
252
|
+
|
253
|
+
|
254
|
+
|
255
|
+
# The default storage engine that will be used when create new tables when
|
256
|
+
|
257
|
+
default-storage-engine=INNODB
|
258
|
+
|
259
|
+
|
260
|
+
|
261
|
+
# Set the SQL mode to strict
|
262
|
+
|
263
|
+
sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
|
264
|
+
|
265
|
+
|
266
|
+
|
267
|
+
# General and Slow logging.
|
268
|
+
|
269
|
+
log-output=FILE
|
270
|
+
|
271
|
+
|
272
|
+
|
273
|
+
general-log=0
|
274
|
+
|
275
|
+
|
276
|
+
|
277
|
+
general_log_file="PC-20140.log"
|
278
|
+
|
279
|
+
|
280
|
+
|
281
|
+
slow-query-log=1
|
282
|
+
|
283
|
+
|
284
|
+
|
285
|
+
slow_query_log_file="PC-20140-slow.log"
|
286
|
+
|
287
|
+
|
288
|
+
|
289
|
+
long_query_time=10
|
290
|
+
|
291
|
+
|
292
|
+
|
293
|
+
# Error Logging.
|
294
|
+
|
295
|
+
log-error="PC-20140.err"
|
296
|
+
|
297
|
+
|
298
|
+
|
299
|
+
# ***** Group Replication Related *****
|
300
|
+
|
301
|
+
# Specifies the base name to use for binary log files. With binary logging
|
302
|
+
|
303
|
+
# enabled, the server logs all statements that change data to the binary
|
304
|
+
|
305
|
+
# log, which is used for backup and replication.
|
306
|
+
|
307
|
+
# log-bin
|
308
|
+
|
309
|
+
|
310
|
+
|
311
|
+
# ***** Group Replication Related *****
|
312
|
+
|
313
|
+
# Sets the binary logging format, and can be any one of STATEMENT, ROW,
|
314
|
+
|
315
|
+
# or MIXED. ROW is suggested for Group Replication.
|
316
|
+
|
317
|
+
# binlog_format
|
318
|
+
|
319
|
+
|
320
|
+
|
321
|
+
# ***** Group Replication Related *****
|
322
|
+
|
323
|
+
# Causes the master to write a checksum for each event in the binary log.
|
324
|
+
|
325
|
+
# binlog_checksum supports the values NONE (disabled) and CRC32.
|
326
|
+
|
327
|
+
# The default is CRC32. When disabled (value NONE), the server verifies
|
328
|
+
|
329
|
+
# that it is writing only complete events to the binary log by writing
|
330
|
+
|
331
|
+
# and checking the event length (rather than a checksum) for each event.
|
332
|
+
|
333
|
+
# NONE must be used with Group Replication.
|
334
|
+
|
335
|
+
# binlog_checksum
|
336
|
+
|
337
|
+
|
338
|
+
|
339
|
+
# ***** Group Replication Related *****
|
340
|
+
|
341
|
+
# The base name for the relay log. The server creates relay log files in
|
342
|
+
|
343
|
+
# sequence by adding a numeric suffix to the base name. If you specify this
|
344
|
+
|
345
|
+
# option, the value specified is also used as the base name for the relay log
|
346
|
+
|
347
|
+
# index file. Relay logs increase speed by using load-balancing between disks.
|
348
|
+
|
349
|
+
relay_log="PC-20140-relay"
|
350
|
+
|
351
|
+
|
352
|
+
|
353
|
+
# ***** Group Replication Related *****
|
354
|
+
|
355
|
+
# Specifies the server ID. For servers that are used in a replication topology,
|
356
|
+
|
357
|
+
# you must specify a unique server ID for each replication server, in the
|
358
|
+
|
359
|
+
# range from 1 to 2^32 − 1. “Unique” means that each ID must be different
|
360
|
+
|
361
|
+
# from every other ID in use by any other replication master or slave.
|
362
|
+
|
363
|
+
server-id=1
|
364
|
+
|
365
|
+
# ***** Group Replication Related *****
|
366
|
+
|
367
|
+
# The host name or IP address of the slave to be reported to the master
|
368
|
+
|
369
|
+
# during slave registration. This value appears in the output of SHOW SLAVE HOSTS
|
370
|
+
|
371
|
+
# on the master server. Leave the value unset if you do not want the slave to
|
372
|
+
|
373
|
+
# register itself with the master.
|
374
|
+
|
375
|
+
# report_host=0.0
|
376
|
+
|
377
|
+
|
378
|
+
|
379
|
+
# ***** Group Replication Related *****
|
380
|
+
|
381
|
+
# The TCP/IP port number for connecting to the slave, to be reported to the master during
|
382
|
+
|
383
|
+
# slave registration. Set this only if the slave is listening on a nondefault port or if
|
384
|
+
|
385
|
+
# you have a special tunnel from the master or other clients to the slave.
|
386
|
+
|
387
|
+
report_port=3306
|
388
|
+
|
389
|
+
|
390
|
+
|
391
|
+
# ***** Group Replication Related *****
|
392
|
+
|
393
|
+
# This option specifies whether global transaction identifiers (GTIDs) are
|
394
|
+
|
395
|
+
# used to identify transactions. ON must be used with Group Replication.
|
396
|
+
|
397
|
+
# gtid_mode
|
398
|
+
|
399
|
+
|
400
|
+
|
401
|
+
# ***** Group Replication Related *****
|
402
|
+
|
403
|
+
# When enabled, the server enforces GTID consistency by allowing execution of
|
404
|
+
|
405
|
+
# only statements that can be safely logged using a GTID. You must set this
|
406
|
+
|
407
|
+
# option to ON before enabling GTID based replication.
|
408
|
+
|
409
|
+
# enforce_gtid_consistency
|
410
|
+
|
411
|
+
|
412
|
+
|
413
|
+
# ***** Group Replication Related *****
|
414
|
+
|
415
|
+
# Whether updates received by a slave server from a master server should be
|
416
|
+
|
417
|
+
# logged to the slave's own binary log. Binary logging must be enabled on
|
418
|
+
|
419
|
+
# the slave for this variable to have any effect. ON must be used with
|
420
|
+
|
421
|
+
# Group Replication.
|
422
|
+
|
423
|
+
# log_slave_updates
|
424
|
+
|
425
|
+
|
426
|
+
|
427
|
+
# ***** Group Replication Related *****
|
428
|
+
|
429
|
+
# Determines whether the slave server logs master status and connection information
|
430
|
+
|
431
|
+
# to an InnoDB table in the mysql database, or to a file in the data directory.
|
432
|
+
|
433
|
+
# The TABLE setting is required when multiple replication channels are configured.
|
434
|
+
|
435
|
+
# master_info_repository
|
436
|
+
|
437
|
+
|
438
|
+
|
439
|
+
# ***** Group Replication Related *****
|
440
|
+
|
441
|
+
# Determines whether the slave server logs its position in the relay logs to an InnoDB
|
442
|
+
|
443
|
+
# table in the mysql database, or to a file in the data directory. The TABLE setting is
|
444
|
+
|
445
|
+
# required when multiple replication channels are configured.
|
446
|
+
|
447
|
+
# relay_log_info_repository
|
448
|
+
|
449
|
+
|
450
|
+
|
451
|
+
# ***** Group Replication Related *****
|
452
|
+
|
453
|
+
# Defines the algorithm used to hash the writes extracted during a transaction. If you
|
454
|
+
|
455
|
+
# are using Group Replication, this variable must be set to XXHASH64 because the process
|
456
|
+
|
457
|
+
# of extracting the writes from a transaction is required for conflict detection on all
|
458
|
+
|
459
|
+
# group members.
|
460
|
+
|
461
|
+
# transaction_write_set_extraction
|
462
|
+
|
463
|
+
lower_case_table_names=1
|
464
|
+
|
465
|
+
|
466
|
+
|
467
|
+
# Secure File Priv.
|
468
|
+
|
469
|
+
secure-file-priv="C:/ProgramData/MySQL/MySQL Server 5.7/Uploads"
|
470
|
+
|
471
|
+
|
472
|
+
|
473
|
+
# The maximum amount of concurrent sessions the MySQL server will
|
474
|
+
|
475
|
+
# allow. One of these connections will be reserved for a user with
|
476
|
+
|
477
|
+
# SUPER privileges to allow the administrator to login even if the
|
478
|
+
|
479
|
+
# connection limit has been reached.
|
480
|
+
|
481
|
+
max_connections=151
|
482
|
+
|
483
|
+
|
484
|
+
|
485
|
+
# The number of open tables for all threads. Increasing this value
|
486
|
+
|
487
|
+
# increases the number of file descriptors that mysqld requires.
|
488
|
+
|
489
|
+
# Therefore you have to make sure to set the amount of open files
|
490
|
+
|
491
|
+
# allowed to at least 4096 in the variable "open-files-limit" in
|
492
|
+
|
493
|
+
# section [mysqld_safe]
|
494
|
+
|
495
|
+
table_open_cache=2000
|
496
|
+
|
497
|
+
|
498
|
+
|
499
|
+
# Maximum size for internal (in-memory) temporary tables. If a table
|
500
|
+
|
501
|
+
# grows larger than this value, it is automatically converted to disk
|
502
|
+
|
503
|
+
# based table This limitation is for a single table. There can be many
|
504
|
+
|
505
|
+
# of them.
|
506
|
+
|
507
|
+
tmp_table_size=80M
|
508
|
+
|
509
|
+
|
510
|
+
|
511
|
+
|
512
|
+
|
513
|
+
```
|
514
|
+
|
49
515
|
|
50
516
|
|
51
517
|
windowsサービスでmysql57を再起動した後接続できなくなります。
|