質問編集履歴

1

実際のコードを追記致しました。

2018/06/11 06:08

投稿

starororo
starororo

スコア14

test CHANGED
File without changes
test CHANGED
@@ -17,3 +17,59 @@
17
17
 
18
18
 
19
19
  よろしくお願いします。
20
+
21
+
22
+
23
+
24
+
25
+ 以下は、コマンドプロンプト上のコードです。
26
+
27
+
28
+
29
+ C:\xampp\htdocs\laravel01>php artisan migrate
30
+
31
+
32
+
33
+ Illuminate\Database\QueryException : SQLSTATE[HY000] [1045] Access denied for user 'homestead'@'localhost' (using password: YES) (SQL: select * from information_schema.tables where table_schema = homestead and table_name = migrations)
34
+
35
+
36
+
37
+ at C:\xampp\htdocs\laravel01\vendor\laravel\framework\src\Illuminate\Database\Connection.php:664
38
+
39
+ 660| // If an exception occurs when attempting to run a query, we'll format the error
40
+
41
+ 661| // message to include the bindings with SQL, which will make this exception a
42
+
43
+ 662| // lot more helpful to the developer instead of just the database's errors.
44
+
45
+ 663| catch (Exception $e) {
46
+
47
+ > 664| throw new QueryException(
48
+
49
+ 665| $query, $this->prepareBindings($bindings), $e
50
+
51
+ 666| );
52
+
53
+ 667| }
54
+
55
+ 668|
56
+
57
+
58
+
59
+ Exception trace:
60
+
61
+
62
+
63
+ 1 PDOException::("SQLSTATE[HY000] [1045] Access denied for user 'homestead'@'localhost' (using password: YES)")
64
+
65
+ C:\xampp\htdocs\laravel01\vendor\laravel\framework\src\Illuminate\Database\Connectors\Connector.php:68
66
+
67
+
68
+
69
+ 2 PDO::__construct("mysql:host=127.0.0.1;port=3306;dbname=homestead", "homestead", "secret", [])
70
+
71
+ C:\xampp\htdocs\laravel01\vendor\laravel\framework\src\Illuminate\Database\Connectors\Connector.php:68
72
+
73
+
74
+
75
+ Please use the argument -v to see more details.