質問編集履歴
12
内容追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -324,7 +324,7 @@
|
|
324
324
|
|
325
325
|
|
326
326
|
|
327
|
-
###
|
327
|
+
### 上記のmy.cnf 中身をすべて確認
|
328
328
|
|
329
329
|
```
|
330
330
|
|
11
内容追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -296,6 +296,58 @@
|
|
296
296
|
|
297
297
|
|
298
298
|
|
299
|
+
|
300
|
+
|
301
|
+
|
302
|
+
|
303
|
+
### find / -name "my.cnf" -ls 2>/dev/null
|
304
|
+
|
305
|
+
```
|
306
|
+
|
307
|
+
3976441 8 -rw-r--r-- 1 neko admin 113 9 19 20:58 /usr/local/etc/my.cnf
|
308
|
+
|
309
|
+
3976443 8 -rw-r--r-- 1 neko staff 943 9 19 20:58 /usr/local/Cellar/mysql@5.6/5.6.43/my.cnf
|
310
|
+
|
311
|
+
3976187 8 -rw-r--r-- 1 neko staff 113 12 21 2018 /usr/local/Cellar/mysql@5.6/5.6.43/.bottle/etc/my.cnf
|
312
|
+
|
313
|
+
2607770 8 -rw-r--r-- 1 neko staff 202 7 21 09:04 /Users/neko/lara/laradock/mariadb/my.cnf
|
314
|
+
|
315
|
+
2607814 8 -rw-r--r-- 1 neko staff 266 7 21 09:04 /Users/neko/lara/laradock/percona/my.cnf
|
316
|
+
|
317
|
+
2607792 8 -rw-r--r-- 1 neko staff 272 7 21 09:04 /Users/neko/lara/laradock/mysql/my.cnf
|
318
|
+
|
319
|
+
3673914 16 -rw-rw-r-- 1 root admin 5405 9 11 21:26 /Applications/XAMPP/xamppfiles/etc/my.cnf
|
320
|
+
|
321
|
+
|
322
|
+
|
323
|
+
```
|
324
|
+
|
325
|
+
|
326
|
+
|
327
|
+
### ls -l /usr/local/var/
|
328
|
+
|
329
|
+
```
|
330
|
+
|
331
|
+
nekonoMacBook-Air:~ neko$ cat /usr/local/etc/my.cnf | grep caching_sha2_password
|
332
|
+
|
333
|
+
nekonoMacBook-Air:~ neko$ cat /usr/local/Cellar/mysql@5.6/5.6.43/my.cnf| grep caching_sha2_password
|
334
|
+
|
335
|
+
nekonoMacBook-Air:~ neko$ cat /usr/local/Cellar/mysql@5.6/5.6.43/my.cnf | grep caching_sha2_password
|
336
|
+
|
337
|
+
nekonoMacBook-Air:~ neko$ cat /usr/local/Cellar/mysql@5.6/5.6.43/.bottle/etc/my.cnf | grep caching_sha2_password
|
338
|
+
|
339
|
+
nekonoMacBook-Air:~ neko$ cat /Users/neko/lara/laradock/mariadb/my.cnf | grep caching_sha2_password
|
340
|
+
|
341
|
+
nekonoMacBook-Air:~ neko$ cat /Users/neko/lara/laradock/percona/my.cnf | grep caching_sha2_password
|
342
|
+
|
343
|
+
nekonoMacBook-Air:~ neko$ cat /Applications/XAMPP/xamppfiles/etc/my.cnf | grep caching_sha2_password
|
344
|
+
|
345
|
+
```
|
346
|
+
|
347
|
+
|
348
|
+
|
349
|
+
|
350
|
+
|
299
351
|
### 補足情報(FW/ツールのバージョンなど)
|
300
352
|
|
301
353
|
|
10
brew services restart mysql@5.6追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -280,6 +280,20 @@
|
|
280
280
|
|
281
281
|
|
282
282
|
|
283
|
+
###brew services restart mysql@5.6
|
284
|
+
|
285
|
+
```
|
286
|
+
|
287
|
+
|
288
|
+
|
289
|
+
Stopping `mysql@5.6`... (might take a while)
|
290
|
+
|
291
|
+
==> Successfully stopped `mysql@5.6` (label: homebrew.mxcl.mysql@5.6)
|
292
|
+
|
293
|
+
==> Successfully started `mysql@5.6` (label: homebrew.mxcl.mysql@5.6)
|
294
|
+
|
295
|
+
```
|
296
|
+
|
283
297
|
|
284
298
|
|
285
299
|
### 補足情報(FW/ツールのバージョンなど)
|
9
brew services start mysql@5.6追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -266,6 +266,22 @@
|
|
266
266
|
|
267
267
|
|
268
268
|
|
269
|
+
###brew services start mysql@5.6で起動
|
270
|
+
|
271
|
+
```
|
272
|
+
|
273
|
+
|
274
|
+
|
275
|
+
Service `mysql@5.6` already started, use `brew services restart mysql@5.6` to restart.
|
276
|
+
|
277
|
+
|
278
|
+
|
279
|
+
```
|
280
|
+
|
281
|
+
|
282
|
+
|
283
|
+
|
284
|
+
|
269
285
|
### 補足情報(FW/ツールのバージョンなど)
|
270
286
|
|
271
287
|
|
8
my.cnf追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -246,6 +246,22 @@
|
|
246
246
|
|
247
247
|
|
248
248
|
|
249
|
+
###my.cnf
|
250
|
+
|
251
|
+
```
|
252
|
+
|
253
|
+
$ cat /usr/local/etc/my.cnf
|
254
|
+
|
255
|
+
# Default Homebrew MySQL server config
|
256
|
+
|
257
|
+
[mysqld]
|
258
|
+
|
259
|
+
# Only allow connections from localhost
|
260
|
+
|
261
|
+
bind-address = 127.0.0.1
|
262
|
+
|
263
|
+
```
|
264
|
+
|
249
265
|
|
250
266
|
|
251
267
|
|
7
内容追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -226,7 +226,7 @@
|
|
226
226
|
|
227
227
|
|
228
228
|
|
229
|
-
|
229
|
+
ls: /usr/local/var/mysql/nekonoMacBook-Air.local.pid: No such file or directory
|
230
230
|
|
231
231
|
```
|
232
232
|
|
6
内容追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -220,6 +220,32 @@
|
|
220
220
|
|
221
221
|
|
222
222
|
|
223
|
+
### ls -l /usr/local/var/mysql/nekonoMacBook-Air.local.pid
|
224
|
+
|
225
|
+
```
|
226
|
+
|
227
|
+
|
228
|
+
|
229
|
+
-bash: $: command not found
|
230
|
+
|
231
|
+
```
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
### ls -l /usr/local/var/
|
236
|
+
|
237
|
+
```
|
238
|
+
|
239
|
+
total 0
|
240
|
+
|
241
|
+
drwxrwxr-x 4 neko admin 128 9 18 05:03 homebrew
|
242
|
+
|
243
|
+
drwxr-xr-x 10 neko admin 320 9 19 19:22 mysql
|
244
|
+
|
245
|
+
```
|
246
|
+
|
247
|
+
|
248
|
+
|
223
249
|
|
224
250
|
|
225
251
|
|
5
内容追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -204,6 +204,20 @@
|
|
204
204
|
|
205
205
|
|
206
206
|
|
207
|
+
### mysql.server start
|
208
|
+
|
209
|
+
sudo rm -rf /usr/local/var/mysqlを行ってアンインストール=>インストールしても下記エラー
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
```
|
214
|
+
|
215
|
+
Starting MySQL
|
216
|
+
|
217
|
+
... ERROR! The server quit without updating PID file (/usr/local/var/mysql/nekonoMacBook-Air.local.pid).
|
218
|
+
|
219
|
+
```
|
220
|
+
|
207
221
|
|
208
222
|
|
209
223
|
|
4
内容追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -154,6 +154,54 @@
|
|
154
154
|
|
155
155
|
|
156
156
|
|
157
|
+
### mysqlアンインストールコマンド(上から順に実行)
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
```
|
162
|
+
|
163
|
+
$ brew uninstall mysql@5.6
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
$ rm -rf /usr/local/var/mysql
|
168
|
+
|
169
|
+
$ rm -rf /usr/local/var/mysql56/
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
$ brew install mysql@5.6
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
$ echo 'export PATH="/usr/local/opt/mysql@5.6/bin:$PATH"' >> ~/.bash_profile
|
178
|
+
|
179
|
+
$ . ~/.bash_profile
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
$ mysql.server start
|
184
|
+
|
185
|
+
=>Starting MySQL
|
186
|
+
|
187
|
+
... ERROR! The server quit without updating PID file (/usr/local/var/mysql/nekonoMacBook-Air.local.pid).
|
188
|
+
|
189
|
+
$ mysql.server stop
|
190
|
+
|
191
|
+
=>ERROR! MySQL server PID file could not be found!
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
$ brew services start mysql@5.6
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
$ launchctl list | grep mysql
|
200
|
+
|
201
|
+
42424 0 homebrew.mxcl.mysql@5.6
|
202
|
+
|
203
|
+
```
|
204
|
+
|
157
205
|
|
158
206
|
|
159
207
|
|
3
内容追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -140,6 +140,24 @@
|
|
140
140
|
|
141
141
|
|
142
142
|
|
143
|
+
### mysql --help | grep my.cnf
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
```
|
148
|
+
|
149
|
+
order of preference, my.cnf, $MYSQL_TCP_PORT,
|
150
|
+
|
151
|
+
/etc/my.cnf /etc/mysql/my.cnf /usr/local/etc/my.cnf ~/.my.cnf
|
152
|
+
|
153
|
+
```
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
|
160
|
+
|
143
161
|
|
144
162
|
|
145
163
|
|
2
内容追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -48,11 +48,11 @@
|
|
48
48
|
|
49
49
|
```ここに言語を入力
|
50
50
|
|
51
|
-
echo 'export PATH="/usr/local/opt/mysql@5.6/bin:$PATH"' >> ~/.bash_profil
|
51
|
+
echo 'export PATH="/usr/local/opt/mysql@5.6/bin:$PATH"' >> ~/.bash_profile
|
52
52
|
|
53
53
|
```
|
54
54
|
|
55
|
-
my.cnfを削除するため下記をコマンドを実行後に再度バージョン指定でインストール後、brew services start mysql@5.6を実行してからmysql -u rootを行っても表題の結果です。
|
55
|
+
my.cnfを削除するため下記をコマンドを実行後に再度バージョン指定(brew search mysql@5.6)でインストール後、brew services start mysql@5.6を実行してからmysql -u rootを行っても表題の結果です。
|
56
56
|
|
57
57
|
|
58
58
|
|
@@ -77,6 +77,70 @@
|
|
77
77
|
rm -rf /etc/my.cnf
|
78
78
|
|
79
79
|
```
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
### ls -l /usr/local/Cellar/mysql*
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
```
|
90
|
+
|
91
|
+
total 0
|
92
|
+
|
93
|
+
drwxr-xr-x 17 neko staff 544 9 17 20:10 5.6.43
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
```
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
### echo $PATH
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
```
|
108
|
+
|
109
|
+
/usr/local/opt/mysql@5.6/bin:/usr/local/opt/mysql@5.6/bin:/usr/local/opt/mysql@5.6/bin:/usr/local/opt/mysql@5.6/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
|
110
|
+
|
111
|
+
```
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
### cat /etc/mysql/my.cnf
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
```
|
122
|
+
|
123
|
+
cat: /etc/mysql/my.cnf: No such file or directory
|
124
|
+
|
125
|
+
```
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
### which mysql
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
```
|
136
|
+
|
137
|
+
/usr/local/opt/mysql@5.6/bin/mysql
|
138
|
+
|
139
|
+
```
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
|
80
144
|
|
81
145
|
|
82
146
|
|
1
エラー編集
test
CHANGED
File without changes
|
test
CHANGED
@@ -52,9 +52,31 @@
|
|
52
52
|
|
53
53
|
```
|
54
54
|
|
55
|
+
my.cnfを削除するため下記をコマンドを実行後に再度バージョン指定でインストール後、brew services start mysql@5.6を実行してからmysql -u rootを行っても表題の結果です。
|
55
56
|
|
56
57
|
|
57
58
|
|
59
|
+
|
60
|
+
|
61
|
+
###my.cnfを削除するためのコマンド(rmの前にsudoが付いてましたが外して実行してます。)
|
62
|
+
|
63
|
+
```ここに言語を入力
|
64
|
+
|
65
|
+
rm -rf /usr/local/Cellar/mysql*
|
66
|
+
|
67
|
+
rm -rf /usr/local/bin/mysql*
|
68
|
+
|
69
|
+
rm -rf /usr/local/var/mysql*
|
70
|
+
|
71
|
+
rm -rf /usr/local/etc/my.cnf
|
72
|
+
|
73
|
+
rm -rf /usr/local/share/mysql*
|
74
|
+
|
75
|
+
rm -rf /usr/local/opt/mysql*
|
76
|
+
|
77
|
+
rm -rf /etc/my.cnf
|
78
|
+
|
79
|
+
```
|
58
80
|
|
59
81
|
|
60
82
|
|