質問編集履歴
1
試したことを追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -4,11 +4,13 @@
|
|
4
4
|
|
5
5
|
ご教授頂けますでしょうか。
|
6
6
|
|
7
|
-
|
7
|
+
```
|
8
8
|
|
9
9
|
docker-compose exec app mysql -h db -u test_user -D test -p
|
10
10
|
|
11
11
|
OCI runtime exec failed: exec failed: container_linux.go:349: starting container process caused "exec: \"mysql\": executable file not found in $PATH": unknown
|
12
|
+
|
13
|
+
```
|
12
14
|
|
13
15
|
|
14
16
|
|
@@ -16,7 +18,7 @@
|
|
16
18
|
|
17
19
|
ログインできない理由が分かりません。
|
18
20
|
|
19
|
-
|
21
|
+
```
|
20
22
|
|
21
23
|
Name Command State Ports
|
22
24
|
|
@@ -33,3 +35,57 @@
|
|
33
35
|
entrypoint.sh 3306/tcp,
|
34
36
|
|
35
37
|
mysqld 33060/tcp
|
38
|
+
|
39
|
+
```
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
以下の手順で実行すると、mysqlに接続できているようです。
|
44
|
+
|
45
|
+
$ docker exec -it part1_db_1 bash
|
46
|
+
|
47
|
+
mysql -u test_user -p
|
48
|
+
|
49
|
+
|
50
|
+
|
51
|
+
```
|
52
|
+
|
53
|
+
$ docker exec -it part1_db_1 bash
|
54
|
+
|
55
|
+
root@61b38d80de09:/# mysql -u test_user -p
|
56
|
+
|
57
|
+
Enter password:
|
58
|
+
|
59
|
+
Welcome to the MySQL monitor. Commands end with ; or \g.
|
60
|
+
|
61
|
+
Your MySQL connection id is 8
|
62
|
+
|
63
|
+
Server version: 8.0.22 MySQL Community Server - GPL
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved.
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
Oracle is a registered trademark of Oracle Corporation and/or its
|
72
|
+
|
73
|
+
affiliates. Other names may be trademarks of their respective
|
74
|
+
|
75
|
+
owners.
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
mysql>
|
84
|
+
|
85
|
+
```
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
docker-compose exec app mysql -h db -u test_user -D test -p
|
90
|
+
|
91
|
+
だとエラーになる理由をご教授頂けますでしょうか。
|