質問編集履歴

4

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

2021/01/24 05:45

投稿

a-ichi
a-ichi

スコア16

title CHANGED
File without changes
body CHANGED
@@ -18,6 +18,36 @@
18
18
  usage: chown [-fhnv] [-R [-H | -L | -P]] owner[:group] file ...
19
19
  chown [-fhnv] [-R [-H | -L | -P]] :group file ...
20
20
  ```
21
+
22
+ cd /usr/local/var/mysql/
23
+ ls *.err
24
+ MacBook-Air.local.err
25
+ tail -f MacBook-Air.local.err
26
+
27
+ ```ここに言語を入力
28
+ 省略
29
+ /usr/local/Cellar/mysql@5.7/5.7.32/bin/mysqld: Shutdown complete
30
+
31
+ 2021-01-24T05:30:14.6NZ mysqld_safe mysqld from pid file /usr/local/var/mysql/nakajimaeikounoMacBook-Air.local.pid ended
32
+ 2021-01-24T05:39:40.6NZ mysqld_safe Logging to '/usr/local/var/mysql/nakajimaeikounoMacBook-Air.local.err'.
33
+ 2021-01-24T05:39:40.6NZ mysqld_safe Starting mysqld daemon with databases from /usr/local/var/mysql
34
+ 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).
35
+ 2021-01-24T05:39:41.043628Z 0 [Note] --secure-file-priv is set to NULL. Operations related to importing and exporting data are disabled
36
+ 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 ...
37
+ 2021-01-24T05:39:41.052860Z 0 [Warning] Setting lower_case_table_names=2 because file system for
38
+
39
+ 2021-01-24T05:39:41.220105Z 0 [Note] Skipping generation of SSL certificates as certificate files are present in data directory.
40
+ 2021-01-24T05:39:41.221787Z 0 [Warning] CA certificate ca.pem is self signed.
41
+
42
+ 2021-01-24T05:39:41.228842Z 0 [ERROR] Can't start server : Bind on unix socket: Address already in use
43
+ 2021-01-24T05:39:41.228858Z 0 [ERROR] Do you already have another mysqld server running on socket: /tmp/mysql.sock ?
44
+ 2021-01-24T05:39:41.229052Z 0 [ERROR] Aborting
45
+ 省略
46
+
47
+ 2021-01-24T05:39:42.6NZ mysqld_safe mysqld from pid file /usr/local/var/mysql/nakajimaeikounoMacBook-Air.local.pid ended
48
+
49
+
50
+ ```
21
51
  ### 試したこと
22
52
 
23
53
  sudo rm -f /var/run/mysqld/mysqld.sock

3

試した事修正しました

2021/01/24 05:45

投稿

a-ichi
a-ichi

スコア16

title CHANGED
File without changes
body CHANGED
@@ -26,6 +26,16 @@
26
26
  sudo touch /tmp/mysql.sock
27
27
  sudo chown root/tmp/mysql.sock
28
28
 
29
+ $ rm -rf /usr/local/mysql
30
+ $ rm -rf /Library/StartupItems/MYSQL
31
+ $ rm -rf /Library/PreferencePanes/MySQL.prefPane
32
+ $ rm -rf /Library/Receipts/mysql-.pkg
33
+ $ rm -rf /usr/local/Cellar/mysql*
34
+ $ rm -rf /usr/local/bin/mysql*
35
+ $ rm -rf /usr/local/var/mysql*
36
+ $ rm -rf /usr/local/etc/my.cnf
37
+ $ rm -rf /usr/local/share/mysql*
38
+ $ rm -rf /usr/local/opt/mysql
29
39
  参考サイト
30
40
  https://blog.katsubemakito.net/macos/install-mysql-on-homebrew
31
41
  https://qiita.com/masa_stone22/items/38a286a89c309de7d44e

2

タイトル編集

2021/01/24 04:46

投稿

a-ichi
a-ichi

スコア16

title CHANGED
@@ -1,1 +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)
body CHANGED
File without changes

1

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

2021/01/24 04:39

投稿

a-ichi
a-ichi

スコア16

title CHANGED
File without changes
body CHANGED
@@ -13,7 +13,11 @@
13
13
  ```
14
14
  ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
15
15
  ```
16
-
16
+ ```ここに言語を入力
17
+ sudo chown root/tmp/mysql.sock
18
+ usage: chown [-fhnv] [-R [-H | -L | -P]] owner[:group] file ...
19
+ chown [-fhnv] [-R [-H | -L | -P]] :group file ...
20
+ ```
17
21
  ### 試したこと
18
22
 
19
23
  sudo rm -f /var/run/mysqld/mysqld.sock
@@ -40,4 +44,5 @@
40
44
  ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
41
45
  このエラーになります。
42
46
 
47
+
43
48
  宜しくお願い致します。