質問編集履歴
2
db seedエラー追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -42,9 +42,55 @@
|
|
42
42
|
|
43
43
|
|
44
44
|
|
45
|
-
###
|
45
|
+
### php artisan db:seed --class=OwnersTableSeeder実行時のエラー
|
46
46
|
|
47
|
-
|
47
|
+
```ここに言語を入力
|
48
|
+
|
49
|
+
Illuminate\Database\QueryException : SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: NO) (SQL: insert into `owners` (`login_id`, `password`) values (owner01, $2y$10$5LTYbs97bHW3SO56d3ui8uQfyzFXWGD.2Gp6PSjgPb4sL8lpRWXEm))
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
at /home/vagrant/code/laravel-bbs/vendor/laravel/framework/src/Illuminate/Database/Connection.php:664
|
54
|
+
|
55
|
+
660| // If an exception occurs when attempting to run a query, we'll format the error
|
56
|
+
|
57
|
+
661| // message to include the bindings with SQL, which will make this exception a
|
58
|
+
|
59
|
+
662| // lot more helpful to the developer instead of just the database's errors.
|
60
|
+
|
61
|
+
663| catch (Exception $e) {
|
62
|
+
|
63
|
+
> 664| throw new QueryException(
|
64
|
+
|
65
|
+
665| $query, $this->prepareBindings($bindings), $e
|
66
|
+
|
67
|
+
666| );
|
68
|
+
|
69
|
+
667| }
|
70
|
+
|
71
|
+
668|
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
Exception trace:
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
1 PDOException::("SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: NO)")
|
80
|
+
|
81
|
+
/home/vagrant/code/laravel-bbs/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:70
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
2 PDO::__construct("mysql:host=127.0.0.1;port=3306;dbname=laravel", "root", "", [])
|
86
|
+
|
87
|
+
/home/vagrant/code/laravel-bbs/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:70
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
Please use the argument -v to see more details.
|
92
|
+
|
93
|
+
```
|
48
94
|
|
49
95
|
|
50
96
|
|
1
root権限参考追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -52,6 +52,10 @@
|
|
52
52
|
|
53
53
|
|
54
54
|
|
55
|
+
[root権限参考サイト](https://www.aiship.jp/knowhow/archives/28257)
|
56
|
+
|
57
|
+
|
58
|
+
|
55
59
|
ネット上で参考になるサイトは見つからりませんでした
|
56
60
|
|
57
61
|
|