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

質問編集履歴

1

エラー編集

2019/07/23 11:18

投稿

Ms.yy
Ms.yy

スコア83

title CHANGED
File without changes
body CHANGED
@@ -24,11 +24,37 @@
24
24
  ervice not known
25
25
  ```
26
26
 
27
+
28
+ ### 該当ソースコード2
29
+
30
+ ```ここに言語名を入力
31
+ root@50e07ab13383:/var/www# php artisan migrate
32
+
33
+ In Connection.php line 664:
34
+
35
+ SQLSTATE[HY000] [2054] The server requested authentication method unknown t
36
+ o the client (SQL: select * from information_schema.tables where table_sche
37
+ ma = default and table_name = migrations)
38
+
39
+
40
+ In Connector.php line 67:
41
+
42
+ SQLSTATE[HY000] [2054] The server requested authentication method unknown t
43
+ o the client
44
+
45
+
46
+ In Connector.php line 67:
47
+
48
+ PDO::__construct(): The server requested authentication method unknown to t
49
+ he client [caching_sha2_password]
50
+ ```
51
+
52
+
27
53
  ### .envファイル中身
28
54
 
29
55
  ```ここに言語名を入力
30
56
  DB_CONNECTION=mysql
31
- DB_HOST=mysqldb
57
+ DB_HOST=mysqldb→mysql #編集 該当ソースコード2
32
58
  DB_PORT=3306
33
59
  DB_DATABASE=default
34
60
  DB_USERNAME=default