質問編集履歴
1
試したことについての具体的な説明の追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -16,5 +16,56 @@
|
|
16
16
|
|
17
17
|
|
18
18
|
### 試したこと
|
19
|
+
1.PIDの追加・権限設定
|
20
|
+
$ ls /var/lib/mysql
|
21
|
+
binlog.index
|
19
22
|
|
23
|
+
//uemuranaoyanoMacBook-Pro.local.pidがなかったので追加して権限も付けてみました。
|
24
|
+
|
25
|
+
$ sudo touch /var/lib/mysql/uemuranaoyanoMacBook-Pro.local.pid
|
26
|
+
$ sudo chown -R _mysql:_mysql /var/lib/mysql
|
27
|
+
$ sudo mysql.server restart
|
28
|
+
ERROR! MySQL server PID file could not be found!
|
29
|
+
Starting MySQL
|
30
|
+
.. ERROR! The server quit without updating PID file (/var/lib/mysql/uemuranaoyanoMacBook-Pro.local.pid).
|
31
|
+
|
32
|
+
//権限付けても /var/lib/mysql/uemuranaoyanoMacBook-Pro.local.pid がすぐに消えてしまいます。
|
33
|
+
|
34
|
+
_________________________________________________________________________________________
|
35
|
+
2.MySQL自体を再インストール
|
36
|
+
$ brew install mysql
|
37
|
+
Uninstalling /usr/local/Cellar/mysql/8.0.19... (286 files, 289.2MB)
|
38
|
+
|
39
|
+
$ brew install mysql
|
40
|
+
Updating Homebrew...
|
20
|
-
|
41
|
+
==> Auto-updated Homebrew!
|
42
|
+
Updated 4 taps (homebrew/cask-versions, homebrew/core, homebrew/cask and homebrew/services).
|
43
|
+
==> New Formulae
|
44
|
+
~~~~~~~~~~~~~~~~
|
45
|
+
|
46
|
+
==> Installing mysql
|
47
|
+
==> Pouring mysql-8.0.19_1.catalina.bottle.tar.gz
|
48
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
49
|
+
==> mysql
|
50
|
+
We've installed your MySQL database without a root password. To secure it run:
|
51
|
+
mysql_secure_installation
|
52
|
+
|
53
|
+
MySQL is configured to only allow connections from localhost by default
|
54
|
+
|
55
|
+
To connect run:
|
56
|
+
mysql -uroot
|
57
|
+
|
58
|
+
A "/etc/my.cnf" from another install may interfere with a Homebrew-built
|
59
|
+
server starting up correctly.
|
60
|
+
|
61
|
+
To have launchd start mysql now and restart at login:
|
62
|
+
brew services start mysql
|
63
|
+
Or, if you don't want/need a background service you can just run:
|
64
|
+
mysql.server start
|
65
|
+
|
66
|
+
//再インストール
|
67
|
+
$ mysql.server start
|
68
|
+
Starting MySQL
|
69
|
+
.. ERROR! The server quit without updating PID file (/var/lib/mysql/uemuranaoyanoMacBook-Pro.local.pid).
|
70
|
+
|
71
|
+
//やっぱりダメでした
|