質問編集履歴

2

回答のアドバイスに沿って再調整してみました

2020/07/09 05:13

投稿

soi
soi

スコア34

test CHANGED
File without changes
test CHANGED
@@ -109,3 +109,131 @@
109
109
 
110
110
 
111
111
  どうぞよろしくお願いします。
112
+
113
+
114
+
115
+ #追記(回答を受けて)
116
+
117
+ ご回答を受けて、こちらを試してみました。
118
+
119
+ 参考:The server quit without updating PID file mysqlエラー解決方法
120
+
121
+ [(https://qiita.com/kazu_wsx/items/bb787e9e4e919da03705)](https://qiita.com/kazu_wsx/items/bb787e9e4e919da03705)
122
+
123
+
124
+
125
+ ```Terminal
126
+
127
+
128
+
129
+ hogeMacBook-Pro ~ % rm -rf /usr/local/mysql
130
+
131
+ hogeMacBook-Pro ~ % rm -rf /Library/StartupItems/MYSQL
132
+
133
+ hogeMacBook-Pro ~ % rm -rf /Library/PreferencePanes/MySQL.prefPane
134
+
135
+ hogeMacBook-Pro ~ % rm -rf /Library/Receipts/mysql-.pkg
136
+
137
+ hogeMacBook-Pro ~ % rm -rf /usr/local/Cellar/mysql*
138
+
139
+ hogeMacBook-Pro ~ % m -rf /usr/local/bin/mysql*
140
+
141
+ zsh: command not found: m
142
+
143
+ hogeMacBook-Pro ~ % rm -rf /usr/local/bin/mysql*
144
+
145
+ hogeMacBook-Pro ~ % rm -rf /usr/local/var/mysql*
146
+
147
+ rm: /usr/local/var/mysql/binlog.000005: Permission denied
148
+
149
+ rm: /usr/local/var/mysql/binlog.000002: Permission denied
150
+
151
+ (Permission deniedいっぱい)
152
+
153
+ rm: /usr/local/var/mysql: Directory not empty
154
+
155
+ hogeMacBook-Pro ~ % sudo rm -rf /usr/local/var/mysql*
156
+
157
+ Password:
158
+
159
+ hogeMacBook-Pro ~ % rm -rf /usr/local/etc/my.cnf
160
+
161
+ hogeMacBook-Pro ~ % rm -rf /usr/local/share/mysql*
162
+
163
+ hogeMacBook-Pro ~ % rm -rf /usr/local/opt/mysql
164
+
165
+ hogeMacBook-Pro ~ % brew uninstall mysql
166
+
167
+ Error: No installed keg or cask with the name "mysql"
168
+
169
+ hogeMacBook-Pro ~ % brew install mysql
170
+
171
+ Updating Homebrew...
172
+
173
+ ==> Auto-updated Homebrew!
174
+
175
+ Updated 1 tap (homebrew/core).
176
+
177
+ ==> New Formulae
178
+
179
+ termcolor
180
+
181
+ ==> Updated Formulae
182
+
183
+ azure-storage-cpp onednn teleport websocat
184
+
185
+ ballerina ser2net tomcat@7
186
+
187
+
188
+
189
+ ==> Downloading https://homebrew.bintray.com/bottles/mysql-8.0.19_1.catalina.bot
190
+
191
+ Already downloaded: /Users/hoge/Library/Caches/Homebrew/downloads/d8a3b1d8709c6ed74cfe9b16bb61a8770b811043a3b3e5791ec615beab5f41ec--mysql-8.0.19_1.catalina.bottle.tar.gz
192
+
193
+ ==> Pouring mysql-8.0.19_1.catalina.bottle.tar.gz
194
+
195
+ Warning: This keg was marked linked already, continuing anyway
196
+
197
+ ==> /usr/local/Cellar/mysql/8.0.19_1/bin/mysqld --initialize-insecure --user=hoge
198
+
199
+ ==> Caveats
200
+
201
+ We've installed your MySQL database without a root password. To secure it run:
202
+
203
+ mysql_secure_installation
204
+
205
+
206
+
207
+ MySQL is configured to only allow connections from localhost by default
208
+
209
+
210
+
211
+ To connect run:
212
+
213
+ mysql -uroot
214
+
215
+
216
+
217
+ To have launchd start mysql now and restart at login:
218
+
219
+ brew services start mysql
220
+
221
+ Or, if you don't want/need a background service you can just run:
222
+
223
+ mysql.server start
224
+
225
+ ==> Summary
226
+
227
+ ???? /usr/local/Cellar/mysql/8.0.19_1: 286 files, 288.8MB
228
+
229
+ hogeMacBook-Pro ~ % echo 'export PATH="/usr/local/Cellar/mysql/8.0.19_1/bin:$PATH"' >> ~/.bash_profile
230
+
231
+ hogeMacBook-Pro ~ % mysql.server start
232
+
233
+ Starting MySQL
234
+
235
+ ... ERROR! The server quit without updating PID file (/usr/local/var/mysql/hogeMacBook-Pro.local.pid).
236
+
237
+ ```
238
+
239
+ 一周してしまい、結局同じエラーが起きてしまうようです。。

1

URLをリンクに修正

2020/07/09 05:13

投稿

soi
soi

スコア34

test CHANGED
File without changes
test CHANGED
@@ -36,7 +36,7 @@
36
36
 
37
37
  #試したこと
38
38
 
39
- 参照:mysql 起動時のThe server quit without updating PID file エラーの回避法(https://qiita.com/jonakp/items/477a18d4a94c01a31583)
39
+ 参照:mysql 起動時のThe server quit without updating PID file エラーの回避法([https://qiita.com/jonakp/items/477a18d4a94c01a31583](https://qiita.com/jonakp/items/477a18d4a94c01a31583))
40
40
 
41
41
 
42
42