質問編集履歴
6
訂正
test
CHANGED
File without changes
|
test
CHANGED
@@ -248,6 +248,8 @@
|
|
248
248
|
|
249
249
|
### 補足情報(FW/ツールのバージョンなど)
|
250
250
|
|
251
|
+
image mysql:5.7
|
252
|
+
|
251
253
|
Laravel Framework 5.8.38
|
252
254
|
|
253
255
|
docker
|
5
訂正
test
CHANGED
File without changes
|
test
CHANGED
@@ -14,57 +14,171 @@
|
|
14
14
|
|
15
15
|
①
|
16
16
|
|
17
|
-
dpkg-reconfigure localesの設定で、 [*] ja_JP.UTF-8 UTF-8 に設定しました。(元々「*」あった場合、スペースキーで「*」を取り除く)、次に「ja_JP.UTF-8」を選択し、Enterキーを押
|
17
|
+
dpkg-reconfigure localesの設定で、 [*] ja_JP.UTF-8 UTF-8 に設定しました。(元々「*」あった場合、スペースキーで「*」を取り除く)、次に「ja_JP.UTF-8」を選択し、Enterキーを押す。
|
18
|
+
|
19
|
+
|
20
|
+
|
18
|
-
|
21
|
+
root@5f2895303966:/# echo $LANG
|
22
|
+
|
23
|
+
jp_JP.UTF-8
|
24
|
+
|
25
|
+
root@5f2895303966:/# locale
|
26
|
+
|
27
|
+
すべて"jp_JP.UTF-8"になっている。
|
28
|
+
|
29
|
+
|
30
|
+
|
31
|
+
root@5f2895303966:/# mysql -u root -p --default-character-set=utf8mb4
|
32
|
+
|
33
|
+
mysql> INSERT INTO `categories` (`id`, `created_at`, `updated_at`, `is_deleted`, `name`) VALUES
|
34
|
+
|
35
|
+
-> (NULL, NOW(), NOW(), 0, ''), やはり日本語入力ができない。
|
36
|
+
|
37
|
+
|
38
|
+
|
19
|
-
|
39
|
+
②
|
20
40
|
|
21
41
|
# mysqlコンテナに入る
|
22
42
|
|
23
43
|
% docker-compose exec mysql bash
|
24
44
|
|
45
|
+
|
46
|
+
|
47
|
+
# mysqlにrootユーザーでログイン->パスワードが求められるので入力
|
48
|
+
|
25
|
-
root@5f2895303966:/#
|
49
|
+
root@5f2895303966:/# mysql -u root -p
|
50
|
+
|
26
|
-
|
51
|
+
Enter password: xxx
|
52
|
+
|
53
|
+
mysql> INSERT INTO `categories` (`id`, `created_at`, `updated_at`, `is_deleted`, `name`) VALUES
|
54
|
+
|
55
|
+
-> (NULL, NOW(), NOW(), 0, '洋画'), と入力しても
|
56
|
+
|
57
|
+
-> (NULL, NOW(), NOW(), 0, ''), のように''になってしまう。
|
58
|
+
|
59
|
+
```
|
60
|
+
|
61
|
+
|
62
|
+
|
27
|
-
|
63
|
+
### 該当のソースコード
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
```php
|
68
|
+
|
69
|
+
|
28
70
|
|
29
71
|
root@5f2895303966:/# locale
|
30
72
|
|
31
|
-
|
73
|
+
locale: Cannot set LC_CTYPE to default locale: No such file or directory
|
74
|
+
|
32
|
-
|
75
|
+
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
|
76
|
+
|
77
|
+
locale: Cannot set LC_ALL to default locale: No such file or directory
|
78
|
+
|
33
|
-
LANG=
|
79
|
+
LANG=jp_JP.UTF-8
|
34
80
|
|
35
81
|
LANGUAGE=
|
36
82
|
|
37
|
-
LC_CTYPE="P
|
38
|
-
|
39
|
-
LC_NUMERIC="P
|
40
|
-
|
41
|
-
LC_TIME="P
|
42
|
-
|
43
|
-
LC_COLLATE="P
|
44
|
-
|
45
|
-
LC_MONETARY="P
|
46
|
-
|
47
|
-
LC_MESSAGES="P
|
48
|
-
|
49
|
-
LC_PAPER="P
|
50
|
-
|
51
|
-
LC_NAME="P
|
52
|
-
|
53
|
-
LC_ADDRESS="P
|
54
|
-
|
55
|
-
LC_TELEPHONE="P
|
56
|
-
|
57
|
-
LC_MEASUREMENT="P
|
58
|
-
|
59
|
-
LC_IDENTIFICATION="P
|
60
|
-
|
61
|
-
LC_ALL=
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
83
|
+
LC_CTYPE="jp_JP.UTF-8"
|
84
|
+
|
85
|
+
LC_NUMERIC="jp_JP.UTF-8"
|
86
|
+
|
87
|
+
LC_TIME="jp_JP.UTF-8"
|
88
|
+
|
89
|
+
LC_COLLATE="jp_JP.UTF-8"
|
90
|
+
|
91
|
+
LC_MONETARY="jp_JP.UTF-8"
|
92
|
+
|
93
|
+
LC_MESSAGES="jp_JP.UTF-8"
|
94
|
+
|
95
|
+
LC_PAPER="jp_JP.UTF-8"
|
96
|
+
|
97
|
+
LC_NAME="jp_JP.UTF-8"
|
98
|
+
|
99
|
+
LC_ADDRESS="jp_JP.UTF-8"
|
100
|
+
|
101
|
+
LC_TELEPHONE="jp_JP.UTF-8"
|
102
|
+
|
103
|
+
LC_MEASUREMENT="jp_JP.UTF-8"
|
104
|
+
|
105
|
+
LC_IDENTIFICATION="jp_JP.UTF-8"
|
106
|
+
|
107
|
+
LC_ALL=jp_JP.UTF-8
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
# 日本語設定
|
112
|
+
|
113
|
+
mysql> SHOW VARIABLES LIKE '%char%';
|
114
|
+
|
115
|
+
+--------------------------+----------------------------+
|
116
|
+
|
117
|
+
| Variable_name | Value |
|
118
|
+
|
119
|
+
+--------------------------+----------------------------+
|
120
|
+
|
121
|
+
| character_set_client | utf8 |
|
122
|
+
|
123
|
+
| character_set_connection | utf8 |
|
124
|
+
|
125
|
+
| character_set_database | utf8 |
|
126
|
+
|
127
|
+
| character_set_filesystem | binary |
|
128
|
+
|
129
|
+
| character_set_results | utf8 |
|
130
|
+
|
131
|
+
| character_set_server | utf8 |
|
132
|
+
|
133
|
+
| character_set_system | utf8 |
|
134
|
+
|
135
|
+
| character_sets_dir | /usr/share/mysql/charsets/ |
|
136
|
+
|
137
|
+
+--------------------------+----------------------------+
|
138
|
+
|
139
|
+
8 rows in set (0.01 sec)
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
root@5f2895303966:/# vi /etc/my.cnf
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
[mysqld]
|
148
|
+
|
149
|
+
# character-set-server=utf8 (コメントアウトにすると入力出来ると知ったので、コメントアウトしたが、入力できない。)
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
[mysql]
|
154
|
+
|
155
|
+
default-character-set=utf8
|
156
|
+
|
157
|
+
[mysqld]
|
158
|
+
|
159
|
+
character-set-server=utf8
|
160
|
+
|
161
|
+
[mysqldump]
|
162
|
+
|
163
|
+
character-set-server=utf8
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
```
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
### 試したこと
|
174
|
+
|
175
|
+
```php
|
176
|
+
|
177
|
+
①
|
178
|
+
|
179
|
+
#もともと、「";${LANG}"」になっていたので、「"jp_JP.UTF-8"」変更
|
180
|
+
|
181
|
+
$ export LANG=jp_JP.UTF-8
|
68
182
|
|
69
183
|
root@5f2895303966:/# locale
|
70
184
|
|
@@ -74,254 +188,62 @@
|
|
74
188
|
|
75
189
|
locale: Cannot set LC_ALL to default locale: No such file or directory
|
76
190
|
|
77
|
-
LANG=j
|
191
|
+
LANG=ja_JP.UTF-8
|
78
192
|
|
79
193
|
LANGUAGE=
|
80
194
|
|
81
|
-
LC_CTYPE="
|
82
|
-
|
83
|
-
LC_NUMERIC="
|
84
|
-
|
85
|
-
LC_TIME="
|
86
|
-
|
87
|
-
LC_COLLATE="
|
88
|
-
|
89
|
-
LC_MONETARY="
|
90
|
-
|
91
|
-
LC_MESSAGES="
|
92
|
-
|
93
|
-
LC_PAPER="
|
94
|
-
|
95
|
-
LC_NAME="
|
96
|
-
|
97
|
-
LC_ADDRESS="
|
98
|
-
|
99
|
-
LC_TELEPHONE="
|
100
|
-
|
101
|
-
LC_MEASUREMENT="
|
102
|
-
|
103
|
-
LC_IDENTIFICATION="
|
104
|
-
|
105
|
-
LC_ALL=
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
Enter password: xxx
|
130
|
-
|
131
|
-
mysql> INSERT INTO `categories` (`id`, `created_at`, `updated_at`, `is_deleted`, `name`) VALUES
|
132
|
-
|
133
|
-
-> (NULL, NOW(), NOW(), 0, '洋画'), と入力しても
|
134
|
-
|
135
|
-
-> (NULL, NOW(), NOW(), 0, ''), のように''になってしまう。
|
195
|
+
LC_CTYPE=";${LANG}"
|
196
|
+
|
197
|
+
LC_NUMERIC=";${LANG}"
|
198
|
+
|
199
|
+
LC_TIME=";${LANG}"
|
200
|
+
|
201
|
+
LC_COLLATE=";${LANG}"
|
202
|
+
|
203
|
+
LC_MONETARY=";${LANG}"
|
204
|
+
|
205
|
+
LC_MESSAGES=";${LANG}"
|
206
|
+
|
207
|
+
LC_PAPER=";${LANG}"
|
208
|
+
|
209
|
+
LC_NAME=";${LANG}"
|
210
|
+
|
211
|
+
LC_ADDRESS=";${LANG}"
|
212
|
+
|
213
|
+
LC_TELEPHONE=";${LANG}"
|
214
|
+
|
215
|
+
LC_MEASUREMENT=";${LANG}"
|
216
|
+
|
217
|
+
LC_IDENTIFICATION=";${LANG}"
|
218
|
+
|
219
|
+
LC_ALL=\;${LANG}
|
220
|
+
|
221
|
+
|
222
|
+
|
223
|
+
② 3つの文章は
|
224
|
+
|
225
|
+
a,locale: Cannot set LC_CTYPE to default locale: No such file or directory
|
226
|
+
|
227
|
+
b,locale: Cannot set LC_ALL to default locale: No such file or directory
|
228
|
+
|
229
|
+
c,locale: Cannot set LC_MESSAGES to default locale: No such file or directory
|
230
|
+
|
231
|
+
$ sudo vi /etc/environment
|
232
|
+
|
233
|
+
LANG=jp_JP.utf-8
|
234
|
+
|
235
|
+
LC_ALL=jp_JP.utf-8
|
236
|
+
|
237
|
+
:wq!
|
238
|
+
|
239
|
+
と入力すると a,bは解消されると書いてあったが解消されず、、
|
240
|
+
|
241
|
+
|
136
242
|
|
137
243
|
```
|
138
244
|
|
139
245
|
|
140
246
|
|
141
|
-
### 該当のソースコード
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
```php
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
root@5f2895303966:/# locale
|
150
|
-
|
151
|
-
locale: Cannot set LC_CTYPE to default locale: No such file or directory
|
152
|
-
|
153
|
-
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
|
154
|
-
|
155
|
-
locale: Cannot set LC_ALL to default locale: No such file or directory
|
156
|
-
|
157
|
-
LANG=jp_JP.UTF-8
|
158
|
-
|
159
|
-
LANGUAGE=
|
160
|
-
|
161
|
-
LC_CTYPE="jp_JP.UTF-8"
|
162
|
-
|
163
|
-
LC_NUMERIC="jp_JP.UTF-8"
|
164
|
-
|
165
|
-
LC_TIME="jp_JP.UTF-8"
|
166
|
-
|
167
|
-
LC_COLLATE="jp_JP.UTF-8"
|
168
|
-
|
169
|
-
LC_MONETARY="jp_JP.UTF-8"
|
170
|
-
|
171
|
-
LC_MESSAGES="jp_JP.UTF-8"
|
172
|
-
|
173
|
-
LC_PAPER="jp_JP.UTF-8"
|
174
|
-
|
175
|
-
LC_NAME="jp_JP.UTF-8"
|
176
|
-
|
177
|
-
LC_ADDRESS="jp_JP.UTF-8"
|
178
|
-
|
179
|
-
LC_TELEPHONE="jp_JP.UTF-8"
|
180
|
-
|
181
|
-
LC_MEASUREMENT="jp_JP.UTF-8"
|
182
|
-
|
183
|
-
LC_IDENTIFICATION="jp_JP.UTF-8"
|
184
|
-
|
185
|
-
LC_ALL=jp_JP.UTF-8
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
# 日本語設定
|
190
|
-
|
191
|
-
mysql> SHOW VARIABLES LIKE '%char%';
|
192
|
-
|
193
|
-
+--------------------------+----------------------------+
|
194
|
-
|
195
|
-
| Variable_name | Value |
|
196
|
-
|
197
|
-
+--------------------------+----------------------------+
|
198
|
-
|
199
|
-
| character_set_client | utf8 |
|
200
|
-
|
201
|
-
| character_set_connection | utf8 |
|
202
|
-
|
203
|
-
| character_set_database | utf8 |
|
204
|
-
|
205
|
-
| character_set_filesystem | binary |
|
206
|
-
|
207
|
-
| character_set_results | utf8 |
|
208
|
-
|
209
|
-
| character_set_server | utf8 |
|
210
|
-
|
211
|
-
| character_set_system | utf8 |
|
212
|
-
|
213
|
-
| character_sets_dir | /usr/share/mysql/charsets/ |
|
214
|
-
|
215
|
-
+--------------------------+----------------------------+
|
216
|
-
|
217
|
-
8 rows in set (0.01 sec)
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
root@5f2895303966:/# vi /etc/my.cnf
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
[mysqld]
|
226
|
-
|
227
|
-
# character-set-server=utf8 (コメントアウトにすると入力出来ると知ったので、コメントアウトしたが、入力できない。)
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
[mysql]
|
232
|
-
|
233
|
-
default-character-set=utf8
|
234
|
-
|
235
|
-
[mysqld]
|
236
|
-
|
237
|
-
character-set-server=utf8
|
238
|
-
|
239
|
-
[mysqldump]
|
240
|
-
|
241
|
-
character-set-server=utf8
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
```
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
### 試したこと
|
252
|
-
|
253
|
-
```php
|
254
|
-
|
255
|
-
①
|
256
|
-
|
257
|
-
#もともと、「";${LANG}"」になっていたので、「"jp_JP.UTF-8"」変更
|
258
|
-
|
259
|
-
$ export LANG=jp_JP.UTF-8
|
260
|
-
|
261
|
-
root@5f2895303966:/# locale
|
262
|
-
|
263
|
-
locale: Cannot set LC_CTYPE to default locale: No such file or directory
|
264
|
-
|
265
|
-
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
|
266
|
-
|
267
|
-
locale: Cannot set LC_ALL to default locale: No such file or directory
|
268
|
-
|
269
|
-
LANG=ja_JP.UTF-8
|
270
|
-
|
271
|
-
LANGUAGE=
|
272
|
-
|
273
|
-
LC_CTYPE=";${LANG}"
|
274
|
-
|
275
|
-
LC_NUMERIC=";${LANG}"
|
276
|
-
|
277
|
-
LC_TIME=";${LANG}"
|
278
|
-
|
279
|
-
LC_COLLATE=";${LANG}"
|
280
|
-
|
281
|
-
LC_MONETARY=";${LANG}"
|
282
|
-
|
283
|
-
LC_MESSAGES=";${LANG}"
|
284
|
-
|
285
|
-
LC_PAPER=";${LANG}"
|
286
|
-
|
287
|
-
LC_NAME=";${LANG}"
|
288
|
-
|
289
|
-
LC_ADDRESS=";${LANG}"
|
290
|
-
|
291
|
-
LC_TELEPHONE=";${LANG}"
|
292
|
-
|
293
|
-
LC_MEASUREMENT=";${LANG}"
|
294
|
-
|
295
|
-
LC_IDENTIFICATION=";${LANG}"
|
296
|
-
|
297
|
-
LC_ALL=\;${LANG}
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
② 3つの文章は
|
302
|
-
|
303
|
-
a,locale: Cannot set LC_CTYPE to default locale: No such file or directory
|
304
|
-
|
305
|
-
b,locale: Cannot set LC_ALL to default locale: No such file or directory
|
306
|
-
|
307
|
-
c,locale: Cannot set LC_MESSAGES to default locale: No such file or directory
|
308
|
-
|
309
|
-
$ sudo vi /etc/environment
|
310
|
-
|
311
|
-
LANG=jp_JP.utf-8
|
312
|
-
|
313
|
-
LC_ALL=jp_JP.utf-8
|
314
|
-
|
315
|
-
:wq!
|
316
|
-
|
317
|
-
と入力すると a,bは解消されると書いてあったが解消されず、、
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
```
|
322
|
-
|
323
|
-
|
324
|
-
|
325
247
|
|
326
248
|
|
327
249
|
### 補足情報(FW/ツールのバージョンなど)
|
4
訂正
test
CHANGED
File without changes
|
test
CHANGED
@@ -12,12 +12,114 @@
|
|
12
12
|
|
13
13
|
# 入力までの流れ
|
14
14
|
|
15
|
-
|
15
|
+
①
|
16
|
+
|
17
|
+
dpkg-reconfigure localesの設定で、 [*] ja_JP.UTF-8 UTF-8 に設定しました。(元々「*」あった場合、スペースキーで「*」を取り除く)、次に「ja_JP.UTF-8」を選択し、Enterキーを押して、exitで抜けました。
|
18
|
+
|
19
|
+
再度、
|
16
20
|
|
17
21
|
# mysqlコンテナに入る
|
18
22
|
|
19
23
|
% docker-compose exec mysql bash
|
20
24
|
|
25
|
+
root@5f2895303966:/# echo $LANG
|
26
|
+
|
27
|
+
何も表示されない。。?
|
28
|
+
|
29
|
+
root@5f2895303966:/# locale
|
30
|
+
|
31
|
+
なぜかすべて"POSIX"に変わっている。
|
32
|
+
|
33
|
+
LANG=
|
34
|
+
|
35
|
+
LANGUAGE=
|
36
|
+
|
37
|
+
LC_CTYPE="POSIX"
|
38
|
+
|
39
|
+
LC_NUMERIC="POSIX"
|
40
|
+
|
41
|
+
LC_TIME="POSIX"
|
42
|
+
|
43
|
+
LC_COLLATE="POSIX"
|
44
|
+
|
45
|
+
LC_MONETARY="POSIX"
|
46
|
+
|
47
|
+
LC_MESSAGES="POSIX"
|
48
|
+
|
49
|
+
LC_PAPER="POSIX"
|
50
|
+
|
51
|
+
LC_NAME="POSIX"
|
52
|
+
|
53
|
+
LC_ADDRESS="POSIX"
|
54
|
+
|
55
|
+
LC_TELEPHONE="POSIX"
|
56
|
+
|
57
|
+
LC_MEASUREMENT="POSIX"
|
58
|
+
|
59
|
+
LC_IDENTIFICATION="POSIX"
|
60
|
+
|
61
|
+
LC_ALL=
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
"jp_JP.UTF-8"になおしたかったので、以下実行、また同じ現象(気にせず進めてみる)
|
66
|
+
|
67
|
+
export LANG=jp_JP.UTF-8
|
68
|
+
|
69
|
+
root@5f2895303966:/# locale
|
70
|
+
|
71
|
+
locale: Cannot set LC_CTYPE to default locale: No such file or directory
|
72
|
+
|
73
|
+
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
|
74
|
+
|
75
|
+
locale: Cannot set LC_ALL to default locale: No such file or directory
|
76
|
+
|
77
|
+
LANG=jp_JP.UTF-8
|
78
|
+
|
79
|
+
LANGUAGE=
|
80
|
+
|
81
|
+
LC_CTYPE="jp_JP.UTF-8"
|
82
|
+
|
83
|
+
LC_NUMERIC="jp_JP.UTF-8"
|
84
|
+
|
85
|
+
LC_TIME="jp_JP.UTF-8"
|
86
|
+
|
87
|
+
LC_COLLATE="jp_JP.UTF-8"
|
88
|
+
|
89
|
+
LC_MONETARY="jp_JP.UTF-8"
|
90
|
+
|
91
|
+
LC_MESSAGES="jp_JP.UTF-8"
|
92
|
+
|
93
|
+
LC_PAPER="jp_JP.UTF-8"
|
94
|
+
|
95
|
+
LC_NAME="jp_JP.UTF-8"
|
96
|
+
|
97
|
+
LC_ADDRESS="jp_JP.UTF-8"
|
98
|
+
|
99
|
+
LC_TELEPHONE="jp_JP.UTF-8"
|
100
|
+
|
101
|
+
LC_MEASUREMENT="jp_JP.UTF-8"
|
102
|
+
|
103
|
+
LC_IDENTIFICATION="jp_JP.UTF-8"
|
104
|
+
|
105
|
+
LC_ALL=
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
root@5f2895303966:/# mysql -u root -p --default-character-set=utf8mb4
|
110
|
+
|
111
|
+
mysql> INSERT INTO `categories` (`id`, `created_at`, `updated_at`, `is_deleted`, `name`) VALUES
|
112
|
+
|
113
|
+
-> (NULL, NOW(), NOW(), 0, ''), やはり日本語入力ができない。
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
②
|
118
|
+
|
119
|
+
# mysqlコンテナに入る
|
120
|
+
|
121
|
+
% docker-compose exec mysql bash
|
122
|
+
|
21
123
|
|
22
124
|
|
23
125
|
# mysqlにrootユーザーでログイン->パスワードが求められるので入力
|
@@ -42,6 +144,8 @@
|
|
42
144
|
|
43
145
|
```php
|
44
146
|
|
147
|
+
|
148
|
+
|
45
149
|
root@5f2895303966:/# locale
|
46
150
|
|
47
151
|
locale: Cannot set LC_CTYPE to default locale: No such file or directory
|
3
訂正
test
CHANGED
File without changes
|
test
CHANGED
@@ -2,12 +2,18 @@
|
|
2
2
|
|
3
3
|
|
4
4
|
|
5
|
+
mysqlにrootユーザーでログイン後
|
6
|
+
|
5
|
-
|
7
|
+
insert intoを使い、日本語を入力すると、日本語部分だけ反応されず表示されない。
|
6
8
|
|
7
9
|
utf8に変えれば、この問題も解消されるとおもっていたのですが、解消することができません。
|
8
10
|
|
9
11
|
```php
|
10
12
|
|
13
|
+
# 入力までの流れ
|
14
|
+
|
15
|
+
|
16
|
+
|
11
17
|
# mysqlコンテナに入る
|
12
18
|
|
13
19
|
% docker-compose exec mysql bash
|
2
訂正
test
CHANGED
File without changes
|
test
CHANGED
@@ -8,6 +8,18 @@
|
|
8
8
|
|
9
9
|
```php
|
10
10
|
|
11
|
+
# mysqlコンテナに入る
|
12
|
+
|
13
|
+
% docker-compose exec mysql bash
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
# mysqlにrootユーザーでログイン->パスワードが求められるので入力
|
18
|
+
|
19
|
+
root@5f2895303966:/# mysql -u root -p
|
20
|
+
|
21
|
+
Enter password: xxx
|
22
|
+
|
11
23
|
mysql> INSERT INTO `categories` (`id`, `created_at`, `updated_at`, `is_deleted`, `name`) VALUES
|
12
24
|
|
13
25
|
-> (NULL, NOW(), NOW(), 0, '洋画'), と入力しても
|
1
訂正
test
CHANGED
File without changes
|
test
CHANGED
File without changes
|