質問編集履歴
2
書式改善
test
CHANGED
File without changes
|
test
CHANGED
@@ -60,6 +60,10 @@
|
|
60
60
|
|
61
61
|
➀mariadbをインストール、初期設定完了。system statusでは以下のように問題なく起動しています。
|
62
62
|
|
63
|
+
```ここに言語を入力
|
64
|
+
|
65
|
+
|
66
|
+
|
63
67
|
[root@dbsv ~]# systemctl status mariadb.service
|
64
68
|
|
65
69
|
● mariadb.service - MariaDB database server
|
@@ -100,7 +104,11 @@
|
|
100
104
|
|
101
105
|
10月 27 19:41:00 dbsv mysqld_safe[4447]: 201027 19:41:00 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
|
102
106
|
|
103
|
-
10月 27 19:41:02 dbsv systemd[1]: Started MariaDB database server.
|
107
|
+
10月 27 19:41:02 dbsv systemd[1]: Started MariaDB database server.```ここに言語を入力
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
```
|
104
112
|
|
105
113
|
|
106
114
|
|
@@ -142,19 +150,105 @@
|
|
142
150
|
|
143
151
|
|
144
152
|
|
153
|
+
|
154
|
+
|
155
|
+
```
|
156
|
+
|
145
157
|
<設定ファイルの中身>
|
146
158
|
|
159
|
+
[root@dbsv ~]# cat /etc/my.cnf
|
160
|
+
|
161
|
+
[mysqld]
|
162
|
+
|
163
|
+
datadir=/var/lib/mysql
|
164
|
+
|
165
|
+
socket=/var/lib/mysql/mysql.sock
|
166
|
+
|
167
|
+
# Disabling symbolic-links is recommended to prevent assorted security risks
|
168
|
+
|
169
|
+
symbolic-links=0
|
170
|
+
|
171
|
+
#Settings user and group are ignored when systemd is used.
|
172
|
+
|
173
|
+
#If you need to run mysqld under a different user or group,
|
174
|
+
|
175
|
+
#customize your systemd unit file for mariadb according to the
|
176
|
+
|
177
|
+
#instructions in http://fedoraproject.org/wiki/Systemd
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
[mysqld_safe]
|
182
|
+
|
183
|
+
log-error=/var/log/mariadb/mariadb.log
|
184
|
+
|
185
|
+
pid-file=/var/run/mariadb/mariadb.pid
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
#
|
190
|
+
|
191
|
+
#include all files from the config directory
|
192
|
+
|
193
|
+
#
|
194
|
+
|
195
|
+
!includedir /etc/my.cnf.d
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
[mysqld]
|
200
|
+
|
201
|
+
skip-character-set-client-handshake
|
202
|
+
|
203
|
+
character-set-server = utf8
|
204
|
+
|
205
|
+
collation-server = utf8_general_ci
|
206
|
+
|
207
|
+
init-connect = SET NAMES utf8
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
[client]
|
212
|
+
|
213
|
+
default-character-set = utf8
|
214
|
+
|
215
|
+
socket=/opt/mysql/mysql.sock
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
[mysqldump]
|
220
|
+
|
221
|
+
default-character-set = utf8
|
222
|
+
|
223
|
+
|
224
|
+
|
225
|
+
[mysql]
|
226
|
+
|
227
|
+
default-character-set = utf8```
|
228
|
+
|
229
|
+
|
230
|
+
|
231
|
+
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
|
236
|
+
|
147
237
|
```
|
148
238
|
|
239
|
+
````ここに言語を入力
|
240
|
+
|
241
|
+
<バックアップファイル> cp -pで作成しました。
|
242
|
+
|
149
|
-
[root@dbsv ~]# cat /etc/my.cnf
|
243
|
+
[root@dbsv ~]# cat /etc/my.cnf.org
|
150
244
|
|
151
245
|
[mysqld]
|
152
246
|
|
153
|
-
datadir=/var/lib/mysql
|
247
|
+
#datadir=/var/lib/mysql
|
154
|
-
|
248
|
+
|
155
|
-
socket=/var/lib/mysql/mysql.sock
|
249
|
+
#socket=/var/lib/mysql/mysql.sock
|
156
|
-
|
250
|
+
|
157
|
-
#
|
251
|
+
#Disabling symbolic-links is recommended to prevent assorted security risks
|
158
252
|
|
159
253
|
symbolic-links=0
|
160
254
|
|
@@ -162,9 +256,9 @@
|
|
162
256
|
|
163
257
|
#If you need to run mysqld under a different user or group,
|
164
258
|
|
165
|
-
#customize your systemd unit file for mariadb according to the
|
259
|
+
# customize your systemd unit file for mariadb according to the
|
166
|
-
|
260
|
+
|
167
|
-
#instructions in http://fedoraproject.org/wiki/Systemd
|
261
|
+
# instructions in http://fedoraproject.org/wiki/Systemd
|
168
262
|
|
169
263
|
|
170
264
|
|
@@ -176,13 +270,13 @@
|
|
176
270
|
|
177
271
|
|
178
272
|
|
179
|
-
|
273
|
+
|
180
274
|
|
181
275
|
#include all files from the config directory
|
182
276
|
|
183
|
-
|
277
|
+
|
184
|
-
|
278
|
+
|
185
|
-
|
279
|
+
#includedir /etc/my.cnf.d
|
186
280
|
|
187
281
|
|
188
282
|
|
@@ -214,88 +308,8 @@
|
|
214
308
|
|
215
309
|
[mysql]
|
216
310
|
|
217
|
-
default-character-set = utf8
|
311
|
+
default-character-set = utf8
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
312
|
+
|
223
|
-
|
313
|
+
[root@dbsv ~]#
|
224
|
-
|
225
|
-
|
226
314
|
|
227
315
|
```
|
228
|
-
|
229
|
-
[root@dbsv ~]# cat /etc/my.cnf.org
|
230
|
-
|
231
|
-
[mysqld]
|
232
|
-
|
233
|
-
#datadir=/var/lib/mysql
|
234
|
-
|
235
|
-
#socket=/var/lib/mysql/mysql.sock
|
236
|
-
|
237
|
-
#Disabling symbolic-links is recommended to prevent assorted security risks
|
238
|
-
|
239
|
-
symbolic-links=0
|
240
|
-
|
241
|
-
#Settings user and group are ignored when systemd is used.
|
242
|
-
|
243
|
-
#If you need to run mysqld under a different user or group,
|
244
|
-
|
245
|
-
# customize your systemd unit file for mariadb according to the
|
246
|
-
|
247
|
-
# instructions in http://fedoraproject.org/wiki/Systemd
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
[mysqld_safe]
|
252
|
-
|
253
|
-
log-error=/var/log/mariadb/mariadb.log
|
254
|
-
|
255
|
-
pid-file=/var/run/mariadb/mariadb.pid
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
#include all files from the config directory
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
#includedir /etc/my.cnf.d
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
[mysqld]
|
270
|
-
|
271
|
-
skip-character-set-client-handshake
|
272
|
-
|
273
|
-
character-set-server = utf8
|
274
|
-
|
275
|
-
collation-server = utf8_general_ci
|
276
|
-
|
277
|
-
init-connect = SET NAMES utf8
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
[client]
|
282
|
-
|
283
|
-
default-character-set = utf8
|
284
|
-
|
285
|
-
socket=/opt/mysql/mysql.sock
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
[mysqldump]
|
290
|
-
|
291
|
-
default-character-set = utf8
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
[mysql]
|
296
|
-
|
297
|
-
default-character-set = utf8
|
298
|
-
|
299
|
-
[root@dbsv ~]#
|
300
|
-
|
301
|
-
```
|
1
説明捕捉
test
CHANGED
File without changes
|
test
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
|
11
11
|
|
12
12
|
|
13
|
-
|
13
|
+
【環境】
|
14
14
|
|
15
15
|
・OS:Linux7(64bit)
|
16
16
|
|
@@ -56,7 +56,7 @@
|
|
56
56
|
|
57
57
|
|
58
58
|
|
59
|
-
|
59
|
+
【行った手順】
|
60
60
|
|
61
61
|
➀mariadbをインストール、初期設定完了。system statusでは以下のように問題なく起動しています。
|
62
62
|
|
@@ -112,19 +112,19 @@
|
|
112
112
|
|
113
113
|
|
114
114
|
|
115
|
-
|
115
|
+
#datadir=/var/lib/mysql
|
116
|
-
|
116
|
+
|
117
|
-
|
117
|
+
datadir=/opt/mysql
|
118
|
-
|
118
|
+
|
119
|
-
|
119
|
+
#socket=/var/lib/mysql/mysql.sock
|
120
|
-
|
120
|
+
|
121
|
-
|
121
|
+
socket=/opt/mysql/mysql.sock
|
122
122
|
|
123
123
|
[client]
|
124
124
|
|
125
125
|
default-character-set = utf8
|
126
126
|
|
127
|
-
|
127
|
+
socket=/opt/mysql/mysql.sock
|
128
128
|
|
129
129
|
|
130
130
|
|
@@ -144,27 +144,27 @@
|
|
144
144
|
|
145
145
|
<設定ファイルの中身>
|
146
146
|
|
147
|
+
```
|
148
|
+
|
147
149
|
[root@dbsv ~]# cat /etc/my.cnf
|
148
150
|
|
149
|
-
|
150
|
-
|
151
151
|
[mysqld]
|
152
152
|
|
153
153
|
datadir=/var/lib/mysql
|
154
154
|
|
155
155
|
socket=/var/lib/mysql/mysql.sock
|
156
156
|
|
157
|
-
|
157
|
+
# Disabling symbolic-links is recommended to prevent assorted security risks
|
158
158
|
|
159
159
|
symbolic-links=0
|
160
160
|
|
161
|
-
|
161
|
+
#Settings user and group are ignored when systemd is used.
|
162
|
-
|
162
|
+
|
163
|
-
|
163
|
+
#If you need to run mysqld under a different user or group,
|
164
|
-
|
164
|
+
|
165
|
-
|
165
|
+
#customize your systemd unit file for mariadb according to the
|
166
|
-
|
166
|
+
|
167
|
-
|
167
|
+
#instructions in http://fedoraproject.org/wiki/Systemd
|
168
168
|
|
169
169
|
|
170
170
|
|
@@ -176,11 +176,11 @@
|
|
176
176
|
|
177
177
|
|
178
178
|
|
179
|
-
|
179
|
+
#
|
180
|
-
|
180
|
+
|
181
|
-
|
181
|
+
#include all files from the config directory
|
182
|
-
|
182
|
+
|
183
|
-
|
183
|
+
#
|
184
184
|
|
185
185
|
!includedir /etc/my.cnf.d
|
186
186
|
|
@@ -214,33 +214,37 @@
|
|
214
214
|
|
215
215
|
[mysql]
|
216
216
|
|
217
|
-
default-character-set = utf8
|
217
|
+
default-character-set = utf8```
|
218
|
+
|
219
|
+
|
218
220
|
|
219
221
|
|
220
222
|
|
221
223
|
<バックアップファイル> cp -pで作成しました。
|
222
224
|
|
225
|
+
|
226
|
+
|
227
|
+
```
|
228
|
+
|
223
229
|
[root@dbsv ~]# cat /etc/my.cnf.org
|
224
230
|
|
225
|
-
|
226
|
-
|
227
231
|
[mysqld]
|
228
232
|
|
229
|
-
|
233
|
+
#datadir=/var/lib/mysql
|
230
|
-
|
234
|
+
|
231
|
-
|
235
|
+
#socket=/var/lib/mysql/mysql.sock
|
232
|
-
|
236
|
+
|
233
|
-
|
237
|
+
#Disabling symbolic-links is recommended to prevent assorted security risks
|
234
238
|
|
235
239
|
symbolic-links=0
|
236
240
|
|
237
|
-
|
241
|
+
#Settings user and group are ignored when systemd is used.
|
238
|
-
|
242
|
+
|
239
|
-
|
243
|
+
#If you need to run mysqld under a different user or group,
|
240
|
-
|
244
|
+
|
241
|
-
|
245
|
+
# customize your systemd unit file for mariadb according to the
|
242
|
-
|
246
|
+
|
243
|
-
|
247
|
+
# instructions in http://fedoraproject.org/wiki/Systemd
|
244
248
|
|
245
249
|
|
246
250
|
|
@@ -252,13 +256,13 @@
|
|
252
256
|
|
253
257
|
|
254
258
|
|
255
|
-
|
259
|
+
|
256
|
-
|
260
|
+
|
257
|
-
|
261
|
+
#include all files from the config directory
|
258
|
-
|
259
|
-
|
262
|
+
|
260
|
-
|
263
|
+
|
264
|
+
|
261
|
-
|
265
|
+
#includedir /etc/my.cnf.d
|
262
266
|
|
263
267
|
|
264
268
|
|
@@ -293,3 +297,5 @@
|
|
293
297
|
default-character-set = utf8
|
294
298
|
|
295
299
|
[root@dbsv ~]#
|
300
|
+
|
301
|
+
```
|