質問編集履歴
1
iniの途中まで載せました
title
CHANGED
File without changes
|
body
CHANGED
@@ -19,10 +19,243 @@
|
|
19
19
|
### mysqlのログのwarning部分
|
20
20
|
```
|
21
21
|
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
|
22
|
-
|
23
22
|
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'
|
24
23
|
```
|
24
|
+
### my.ini
|
25
25
|
|
26
|
+
```
|
27
|
+
# Other default tuning values
|
28
|
+
# MySQL Server Instance Configuration File
|
29
|
+
# ----------------------------------------------------------------------
|
30
|
+
# Generated by the MySQL Server Instance Configuration Wizard
|
31
|
+
#
|
32
|
+
#
|
33
|
+
# Installation Instructions
|
34
|
+
# ----------------------------------------------------------------------
|
35
|
+
#
|
36
|
+
# On Linux you can copy this file to /etc/my.cnf to set global options,
|
37
|
+
# mysql-data-dir/my.cnf to set server-specific options
|
38
|
+
# (@localstatedir@ for this installation) or to
|
39
|
+
# ~/.my.cnf to set user-specific options.
|
40
|
+
#
|
41
|
+
# On Windows you should keep this file in the installation directory
|
42
|
+
# of your server (e.g. C:\Program Files\MySQL\MySQL Server X.Y). To
|
43
|
+
# make sure the server reads the config file use the startup option
|
44
|
+
# "--defaults-file".
|
45
|
+
#
|
46
|
+
# To run the server from the command line, execute this in a
|
47
|
+
# command line shell, e.g.
|
48
|
+
# mysqld --defaults-file="C:\Program Files\MySQL\MySQL Server X.Y\my.ini"
|
49
|
+
#
|
50
|
+
# To install the server as a Windows service manually, execute this in a
|
51
|
+
# command line shell, e.g.
|
52
|
+
# mysqld --install MySQLXY --defaults-file="C:\Program Files\MySQL\MySQL Server X.Y\my.ini"
|
53
|
+
#
|
54
|
+
# And then execute this in a command line shell to start the server, e.g.
|
55
|
+
# net start MySQLXY
|
56
|
+
#
|
57
|
+
#
|
58
|
+
# Guidelines for editing this file
|
59
|
+
# ----------------------------------------------------------------------
|
60
|
+
#
|
61
|
+
# In this file, you can use all long options that the program supports.
|
62
|
+
# If you want to know the options a program supports, start the program
|
63
|
+
# with the "--help" option.
|
64
|
+
#
|
65
|
+
# More detailed information about the individual options can also be
|
66
|
+
# found in the manual.
|
67
|
+
#
|
68
|
+
# For advice on how to change settings please see
|
69
|
+
# https://dev.mysql.com/doc/refman/5.7/en/server-configuration-defaults.html
|
70
|
+
#
|
71
|
+
#
|
72
|
+
# CLIENT SECTION
|
73
|
+
# ----------------------------------------------------------------------
|
74
|
+
#
|
75
|
+
# The following options will be read by MySQL client applications.
|
76
|
+
# Note that only client applications shipped by MySQL are guaranteed
|
77
|
+
# to read this section. If you want your own MySQL client program to
|
78
|
+
# honor these values, you need to specify it as an option during the
|
79
|
+
# MySQL client library initialization.
|
80
|
+
#
|
81
|
+
[client]
|
82
|
+
|
83
|
+
# pipe=
|
84
|
+
|
85
|
+
# socket=MYSQL
|
86
|
+
|
87
|
+
port=3306
|
88
|
+
|
89
|
+
[mysql]
|
90
|
+
no-beep
|
91
|
+
|
92
|
+
# default-character-set=
|
93
|
+
|
94
|
+
# SERVER SECTION
|
95
|
+
# ----------------------------------------------------------------------
|
96
|
+
#
|
97
|
+
# The following options will be read by the MySQL Server. Make sure that
|
98
|
+
# you have installed the server correctly (see above) so it reads this
|
99
|
+
# file.
|
100
|
+
#
|
101
|
+
# server_type=2
|
102
|
+
[mysqld]
|
103
|
+
default-time-zone = 'Japan'
|
104
|
+
|
105
|
+
# The next three options are mutually exclusive to SERVER_PORT below.
|
106
|
+
# skip-networking
|
107
|
+
# enable-named-pipe
|
108
|
+
# shared-memory
|
109
|
+
|
110
|
+
# shared-memory-base-name=MYSQL
|
111
|
+
|
112
|
+
# The Pipe the MySQL Server will use
|
113
|
+
# socket=MYSQL
|
114
|
+
|
115
|
+
# The TCP/IP Port the MySQL Server will listen on
|
116
|
+
port=3306
|
117
|
+
|
118
|
+
# Path to installation directory. All paths are usually resolved relative to this.
|
119
|
+
# basedir="C:/Program Files/MySQL/MySQL Server 5.7/"
|
120
|
+
|
121
|
+
# Path to the database root
|
122
|
+
datadir=C:/ProgramData/MySQL/MySQL Server 5.7/Data
|
123
|
+
|
124
|
+
# The default character set that will be used when a new schema or table is
|
125
|
+
# created and no character set is defined
|
126
|
+
# character-set-server=
|
127
|
+
|
128
|
+
# The default storage engine that will be used when create new tables when
|
129
|
+
default-storage-engine=INNODB
|
130
|
+
|
131
|
+
# Set the SQL mode to strict
|
132
|
+
sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
|
133
|
+
|
134
|
+
# General and Slow logging.
|
135
|
+
log-output=FILE
|
136
|
+
|
137
|
+
general-log=0
|
138
|
+
|
139
|
+
general_log_file="PC-20140.log"
|
140
|
+
|
141
|
+
slow-query-log=1
|
142
|
+
|
143
|
+
slow_query_log_file="PC-20140-slow.log"
|
144
|
+
|
145
|
+
long_query_time=10
|
146
|
+
|
147
|
+
# Error Logging.
|
148
|
+
log-error="PC-20140.err"
|
149
|
+
|
150
|
+
# ***** Group Replication Related *****
|
151
|
+
# Specifies the base name to use for binary log files. With binary logging
|
152
|
+
# enabled, the server logs all statements that change data to the binary
|
153
|
+
# log, which is used for backup and replication.
|
154
|
+
# log-bin
|
155
|
+
|
156
|
+
# ***** Group Replication Related *****
|
157
|
+
# Sets the binary logging format, and can be any one of STATEMENT, ROW,
|
158
|
+
# or MIXED. ROW is suggested for Group Replication.
|
159
|
+
# binlog_format
|
160
|
+
|
161
|
+
# ***** Group Replication Related *****
|
162
|
+
# Causes the master to write a checksum for each event in the binary log.
|
163
|
+
# binlog_checksum supports the values NONE (disabled) and CRC32.
|
164
|
+
# The default is CRC32. When disabled (value NONE), the server verifies
|
165
|
+
# that it is writing only complete events to the binary log by writing
|
166
|
+
# and checking the event length (rather than a checksum) for each event.
|
167
|
+
# NONE must be used with Group Replication.
|
168
|
+
# binlog_checksum
|
169
|
+
|
170
|
+
# ***** Group Replication Related *****
|
171
|
+
# The base name for the relay log. The server creates relay log files in
|
172
|
+
# sequence by adding a numeric suffix to the base name. If you specify this
|
173
|
+
# option, the value specified is also used as the base name for the relay log
|
174
|
+
# index file. Relay logs increase speed by using load-balancing between disks.
|
175
|
+
relay_log="PC-20140-relay"
|
176
|
+
|
177
|
+
# ***** Group Replication Related *****
|
178
|
+
# Specifies the server ID. For servers that are used in a replication topology,
|
179
|
+
# you must specify a unique server ID for each replication server, in the
|
180
|
+
# range from 1 to 2^32 − 1. “Unique” means that each ID must be different
|
181
|
+
# from every other ID in use by any other replication master or slave.
|
182
|
+
server-id=1
|
183
|
+
# ***** Group Replication Related *****
|
184
|
+
# The host name or IP address of the slave to be reported to the master
|
185
|
+
# during slave registration. This value appears in the output of SHOW SLAVE HOSTS
|
186
|
+
# on the master server. Leave the value unset if you do not want the slave to
|
187
|
+
# register itself with the master.
|
188
|
+
# report_host=0.0
|
189
|
+
|
190
|
+
# ***** Group Replication Related *****
|
191
|
+
# The TCP/IP port number for connecting to the slave, to be reported to the master during
|
192
|
+
# slave registration. Set this only if the slave is listening on a nondefault port or if
|
193
|
+
# you have a special tunnel from the master or other clients to the slave.
|
194
|
+
report_port=3306
|
195
|
+
|
196
|
+
# ***** Group Replication Related *****
|
197
|
+
# This option specifies whether global transaction identifiers (GTIDs) are
|
198
|
+
# used to identify transactions. ON must be used with Group Replication.
|
199
|
+
# gtid_mode
|
200
|
+
|
201
|
+
# ***** Group Replication Related *****
|
202
|
+
# When enabled, the server enforces GTID consistency by allowing execution of
|
203
|
+
# only statements that can be safely logged using a GTID. You must set this
|
204
|
+
# option to ON before enabling GTID based replication.
|
205
|
+
# enforce_gtid_consistency
|
206
|
+
|
207
|
+
# ***** Group Replication Related *****
|
208
|
+
# Whether updates received by a slave server from a master server should be
|
209
|
+
# logged to the slave's own binary log. Binary logging must be enabled on
|
210
|
+
# the slave for this variable to have any effect. ON must be used with
|
211
|
+
# Group Replication.
|
212
|
+
# log_slave_updates
|
213
|
+
|
214
|
+
# ***** Group Replication Related *****
|
215
|
+
# Determines whether the slave server logs master status and connection information
|
216
|
+
# to an InnoDB table in the mysql database, or to a file in the data directory.
|
217
|
+
# The TABLE setting is required when multiple replication channels are configured.
|
218
|
+
# master_info_repository
|
219
|
+
|
220
|
+
# ***** Group Replication Related *****
|
221
|
+
# Determines whether the slave server logs its position in the relay logs to an InnoDB
|
222
|
+
# table in the mysql database, or to a file in the data directory. The TABLE setting is
|
223
|
+
# required when multiple replication channels are configured.
|
224
|
+
# relay_log_info_repository
|
225
|
+
|
226
|
+
# ***** Group Replication Related *****
|
227
|
+
# Defines the algorithm used to hash the writes extracted during a transaction. If you
|
228
|
+
# are using Group Replication, this variable must be set to XXHASH64 because the process
|
229
|
+
# of extracting the writes from a transaction is required for conflict detection on all
|
230
|
+
# group members.
|
231
|
+
# transaction_write_set_extraction
|
232
|
+
lower_case_table_names=1
|
233
|
+
|
234
|
+
# Secure File Priv.
|
235
|
+
secure-file-priv="C:/ProgramData/MySQL/MySQL Server 5.7/Uploads"
|
236
|
+
|
237
|
+
# The maximum amount of concurrent sessions the MySQL server will
|
238
|
+
# allow. One of these connections will be reserved for a user with
|
239
|
+
# SUPER privileges to allow the administrator to login even if the
|
240
|
+
# connection limit has been reached.
|
241
|
+
max_connections=151
|
242
|
+
|
243
|
+
# The number of open tables for all threads. Increasing this value
|
244
|
+
# increases the number of file descriptors that mysqld requires.
|
245
|
+
# Therefore you have to make sure to set the amount of open files
|
246
|
+
# allowed to at least 4096 in the variable "open-files-limit" in
|
247
|
+
# section [mysqld_safe]
|
248
|
+
table_open_cache=2000
|
249
|
+
|
250
|
+
# Maximum size for internal (in-memory) temporary tables. If a table
|
251
|
+
# grows larger than this value, it is automatically converted to disk
|
252
|
+
# based table This limitation is for a single table. There can be many
|
253
|
+
# of them.
|
254
|
+
tmp_table_size=80M
|
255
|
+
|
256
|
+
|
257
|
+
```
|
258
|
+
|
26
259
|
windowsサービスでmysql57を再起動した後接続できなくなります。
|
27
260
|
mysql自体が立ち上がってないようですので、iniファイルに何か問題がないかと睨めっこしています・・・
|
28
261
|
是非お力添えをお願いしたいですm(__)m
|