質問編集履歴

1

試したことについての具体的な説明の追加

2020/05/22 16:50

投稿

kami7080
kami7080

スコア0

test CHANGED
File without changes
test CHANGED
@@ -34,6 +34,108 @@
34
34
 
35
35
  ### 試したこと
36
36
 
37
+ 1.PIDの追加・権限設定
38
+
39
+ $ ls /var/lib/mysql
40
+
41
+ binlog.index
37
42
 
38
43
 
44
+
45
+ //uemuranaoyanoMacBook-Pro.local.pidがなかったので追加して権限も付けてみました。
46
+
47
+
48
+
49
+ $ sudo touch /var/lib/mysql/uemuranaoyanoMacBook-Pro.local.pid
50
+
51
+ $ sudo chown -R _mysql:_mysql /var/lib/mysql
52
+
53
+ $ sudo mysql.server restart
54
+
55
+ ERROR! MySQL server PID file could not be found!
56
+
57
+ Starting MySQL
58
+
59
+ .. ERROR! The server quit without updating PID file (/var/lib/mysql/uemuranaoyanoMacBook-Pro.local.pid).
60
+
61
+
62
+
63
+ //権限付けても /var/lib/mysql/uemuranaoyanoMacBook-Pro.local.pid がすぐに消えてしまいます。
64
+
65
+
66
+
67
+ _________________________________________________________________________________________
68
+
69
+ 2.MySQL自体を再インストール
70
+
71
+ $ brew install mysql
72
+
73
+ Uninstalling /usr/local/Cellar/mysql/8.0.19... (286 files, 289.2MB)
74
+
75
+
76
+
77
+ $ brew install mysql
78
+
79
+ Updating Homebrew...
80
+
39
- 資料や記事を参考に色々試してみましたが、解決には至らず。
81
+ ==> Auto-updated Homebrew!
82
+
83
+ Updated 4 taps (homebrew/cask-versions, homebrew/core, homebrew/cask and homebrew/services).
84
+
85
+ ==> New Formulae
86
+
87
+ ~~~~~~~~~~~~~~~~
88
+
89
+
90
+
91
+ ==> Installing mysql
92
+
93
+ ==> Pouring mysql-8.0.19_1.catalina.bottle.tar.gz
94
+
95
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
96
+
97
+ ==> mysql
98
+
99
+ We've installed your MySQL database without a root password. To secure it run:
100
+
101
+ mysql_secure_installation
102
+
103
+
104
+
105
+ MySQL is configured to only allow connections from localhost by default
106
+
107
+
108
+
109
+ To connect run:
110
+
111
+ mysql -uroot
112
+
113
+
114
+
115
+ A "/etc/my.cnf" from another install may interfere with a Homebrew-built
116
+
117
+ server starting up correctly.
118
+
119
+
120
+
121
+ To have launchd start mysql now and restart at login:
122
+
123
+ brew services start mysql
124
+
125
+ Or, if you don't want/need a background service you can just run:
126
+
127
+ mysql.server start
128
+
129
+
130
+
131
+ //再インストール
132
+
133
+ $ mysql.server start
134
+
135
+ Starting MySQL
136
+
137
+ .. ERROR! The server quit without updating PID file (/var/lib/mysql/uemuranaoyanoMacBook-Pro.local.pid).
138
+
139
+
140
+
141
+ //やっぱりダメでした