teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

エラー内容

2019/12/25 01:36

投稿

twinparadox
twinparadox

スコア42

title CHANGED
File without changes
body CHANGED
@@ -11,4 +11,49 @@
11
11
  どのようにしたら良いのでしょうか?
12
12
  どなたかご教示頂きたいです。
13
13
 
14
- ![![イメージ説明](f9ef9fe7a54e098a7d4ba15b79da28d9.png)](9409975789c40bd8d4a71032c6b8ba75.png)
14
+ ![![イメージ説明](f9ef9fe7a54e098a7d4ba15b79da28d9.png)](9409975789c40bd8d4a71032c6b8ba75.png)
15
+
16
+ ```ターミナル
17
+ hdk:laradock yokonohidekazu$ docker-compose ps
18
+ Name Command State Ports
19
+ --------------------------------------------------------------
20
+ laraveltutorial_ dockerd- Up 2375/tcp,
21
+ docker-in- entrypoint.sh 2376/tcp
22
+ docker_1
23
+ laraveltutorial_ docker- Up 0.0.0.0:3306->33
24
+ mysql_1 entrypoint.sh 06/tcp,
25
+ mysqld 33060/tcp
26
+ laraveltutorial_ /bin/bash Up 0.0.0.0:443->443
27
+ nginx_1 /opt/startup.sh /tcp, 0.0.0.0:80
28
+ ->80/tcp
29
+ laraveltutorial_ docker-php- Up 9000/tcp
30
+ php-fpm_1 entrypoint php-
31
+ fpm
32
+ laraveltutorial_ /sbin/my_init Up 0.0.0.0:2222->22
33
+ workspace_1 /tcp
34
+ hdk:laradock yokonohidekazu$ docker-compose exec workspace bash
35
+ root@65fbec0ee722:/var/www# php artisan migrate
36
+
37
+ 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')
38
+
39
+ at /var/www/vendor/laravel/framework/src/Illuminate/Database/Connection.php:669
40
+ 665| // If an exception occurs when attempting to run a query, we'll format the error
41
+ 666| // message to include the bindings with SQL, which will make this exception a
42
+ 667| // lot more helpful to the developer instead of just the database's errors.
43
+ 668| catch (Exception $e) {
44
+ > 669| throw new QueryException(
45
+ 670| $query, $this->prepareBindings($bindings), $e
46
+ 671| );
47
+ 672| }
48
+ 673|
49
+
50
+ Exception trace:
51
+
52
+ 1 PDOException::("PDO::__construct(): The server requested authentication method unknown to the client [caching_sha2_password]")
53
+ /var/www/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:70
54
+
55
+ 2 PDO::__construct("mysql:host=mysql;port=3306;dbname=default", "default", "secret", [])
56
+ /var/www/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:70
57
+
58
+ Please use the argument -v to see more details.
59
+ ```