質問編集履歴

4

エラーコード修正しました

2021/01/24 05:45

投稿

a-ichi
a-ichi

スコア16

test CHANGED
File without changes
test CHANGED
@@ -35,6 +35,66 @@
35
35
  usage: chown [-fhnv] [-R [-H | -L | -P]] owner[:group] file ...
36
36
 
37
37
  chown [-fhnv] [-R [-H | -L | -P]] :group file ...
38
+
39
+ ```
40
+
41
+
42
+
43
+ cd /usr/local/var/mysql/
44
+
45
+ ls *.err
46
+
47
+ MacBook-Air.local.err
48
+
49
+ tail -f MacBook-Air.local.err
50
+
51
+
52
+
53
+ ```ここに言語を入力
54
+
55
+ 省略
56
+
57
+ /usr/local/Cellar/mysql@5.7/5.7.32/bin/mysqld: Shutdown complete
58
+
59
+
60
+
61
+ 2021-01-24T05:30:14.6NZ mysqld_safe mysqld from pid file /usr/local/var/mysql/nakajimaeikounoMacBook-Air.local.pid ended
62
+
63
+ 2021-01-24T05:39:40.6NZ mysqld_safe Logging to '/usr/local/var/mysql/nakajimaeikounoMacBook-Air.local.err'.
64
+
65
+ 2021-01-24T05:39:40.6NZ mysqld_safe Starting mysqld daemon with databases from /usr/local/var/mysql
66
+
67
+ 2021-01-24T05:39:41.041402Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
68
+
69
+ 2021-01-24T05:39:41.043628Z 0 [Note] --secure-file-priv is set to NULL. Operations related to importing and exporting data are disabled
70
+
71
+ 2021-01-24T05:39:41.044164Z 0 [Note] /usr/local/Cellar/mysql@5.7/5.7.32/bin/mysqld (mysqld 5.7.32) starting as process 22068 ...
72
+
73
+ 2021-01-24T05:39:41.052860Z 0 [Warning] Setting lower_case_table_names=2 because file system for
74
+
75
+
76
+
77
+ 2021-01-24T05:39:41.220105Z 0 [Note] Skipping generation of SSL certificates as certificate files are present in data directory.
78
+
79
+ 2021-01-24T05:39:41.221787Z 0 [Warning] CA certificate ca.pem is self signed.
80
+
81
+
82
+
83
+ 2021-01-24T05:39:41.228842Z 0 [ERROR] Can't start server : Bind on unix socket: Address already in use
84
+
85
+ 2021-01-24T05:39:41.228858Z 0 [ERROR] Do you already have another mysqld server running on socket: /tmp/mysql.sock ?
86
+
87
+ 2021-01-24T05:39:41.229052Z 0 [ERROR] Aborting
88
+
89
+ 省略
90
+
91
+
92
+
93
+ 2021-01-24T05:39:42.6NZ mysqld_safe mysqld from pid file /usr/local/var/mysql/nakajimaeikounoMacBook-Air.local.pid ended
94
+
95
+
96
+
97
+
38
98
 
39
99
  ```
40
100
 

3

試した事修正しました

2021/01/24 05:45

投稿

a-ichi
a-ichi

スコア16

test CHANGED
File without changes
test CHANGED
@@ -54,6 +54,26 @@
54
54
 
55
55
 
56
56
 
57
+ $ rm -rf /usr/local/mysql
58
+
59
+ $ rm -rf /Library/StartupItems/MYSQL
60
+
61
+ $ rm -rf /Library/PreferencePanes/MySQL.prefPane
62
+
63
+ $ rm -rf /Library/Receipts/mysql-.pkg
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
+
57
77
  参考サイト
58
78
 
59
79
  https://blog.katsubemakito.net/macos/install-mysql-on-homebrew

2

タイトル編集

2021/01/24 04:46

投稿

a-ichi
a-ichi

スコア16

test CHANGED
@@ -1 +1 @@
1
- ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
1
+ ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (38)
test CHANGED
File without changes

1

エラーコード編集しました

2021/01/24 04:39

投稿

a-ichi
a-ichi

スコア16

test CHANGED
File without changes
test CHANGED
@@ -28,7 +28,15 @@
28
28
 
29
29
  ```
30
30
 
31
+ ```ここに言語を入力
31
32
 
33
+ sudo chown root/tmp/mysql.sock
34
+
35
+ usage: chown [-fhnv] [-R [-H | -L | -P]] owner[:group] file ...
36
+
37
+ chown [-fhnv] [-R [-H | -L | -P]] :group file ...
38
+
39
+ ```
32
40
 
33
41
  ### 試したこと
34
42
 
@@ -82,4 +90,6 @@
82
90
 
83
91
 
84
92
 
93
+
94
+
85
95
  宜しくお願い致します。