質問編集履歴

1

エラー内容

2019/12/25 01:36

投稿

twinparadox
twinparadox

スコア42

test CHANGED
File without changes
test CHANGED
@@ -25,3 +25,93 @@
25
25
 
26
26
 
27
27
  ![![イメージ説明](f9ef9fe7a54e098a7d4ba15b79da28d9.png)](9409975789c40bd8d4a71032c6b8ba75.png)
28
+
29
+
30
+
31
+ ```ターミナル
32
+
33
+ hdk:laradock yokonohidekazu$ docker-compose ps
34
+
35
+ Name Command State Ports
36
+
37
+ --------------------------------------------------------------
38
+
39
+ laraveltutorial_ dockerd- Up 2375/tcp,
40
+
41
+ docker-in- entrypoint.sh 2376/tcp
42
+
43
+ docker_1
44
+
45
+ laraveltutorial_ docker- Up 0.0.0.0:3306->33
46
+
47
+ mysql_1 entrypoint.sh 06/tcp,
48
+
49
+ mysqld 33060/tcp
50
+
51
+ laraveltutorial_ /bin/bash Up 0.0.0.0:443->443
52
+
53
+ nginx_1 /opt/startup.sh /tcp, 0.0.0.0:80
54
+
55
+ ->80/tcp
56
+
57
+ laraveltutorial_ docker-php- Up 9000/tcp
58
+
59
+ php-fpm_1 entrypoint php-
60
+
61
+ fpm
62
+
63
+ laraveltutorial_ /sbin/my_init Up 0.0.0.0:2222->22
64
+
65
+ workspace_1 /tcp
66
+
67
+ hdk:laradock yokonohidekazu$ docker-compose exec workspace bash
68
+
69
+ root@65fbec0ee722:/var/www# php artisan migrate
70
+
71
+
72
+
73
+ Illuminate\Database\QueryException : SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client (SQL: select * from information_schema.tables where table_schema = default and table_name = migrations and table_type = 'BASE TABLE')
74
+
75
+
76
+
77
+ at /var/www/vendor/laravel/framework/src/Illuminate/Database/Connection.php:669
78
+
79
+ 665| // If an exception occurs when attempting to run a query, we'll format the error
80
+
81
+ 666| // message to include the bindings with SQL, which will make this exception a
82
+
83
+ 667| // lot more helpful to the developer instead of just the database's errors.
84
+
85
+ 668| catch (Exception $e) {
86
+
87
+ > 669| throw new QueryException(
88
+
89
+ 670| $query, $this->prepareBindings($bindings), $e
90
+
91
+ 671| );
92
+
93
+ 672| }
94
+
95
+ 673|
96
+
97
+
98
+
99
+ Exception trace:
100
+
101
+
102
+
103
+ 1 PDOException::("PDO::__construct(): The server requested authentication method unknown to the client [caching_sha2_password]")
104
+
105
+ /var/www/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:70
106
+
107
+
108
+
109
+ 2 PDO::__construct("mysql:host=mysql;port=3306;dbname=default", "default", "secret", [])
110
+
111
+ /var/www/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:70
112
+
113
+
114
+
115
+ Please use the argument -v to see more details.
116
+
117
+ ```