質問編集履歴
1
ユーザーネームとパスワードを試しにAで設定→エラーになりますmm
test
CHANGED
File without changes
|
test
CHANGED
@@ -34,11 +34,45 @@
|
|
34
34
|
|
35
35
|
```
|
36
36
|
|
37
|
-
|
37
|
+
Illuminate\Database\QueryException : SQLSTATE[HY000] [1045] Access denied for user 'A'@'localhost' (using password: YES) (SQL: select * from information_schema.tables where table_schema = B and table_name = migrations and table_type = 'BASE TABLE')
|
38
38
|
|
39
39
|
|
40
40
|
|
41
|
+
at C:\xampp\htdocs\B\vendor\laravel\framework\src\Illuminate\Database\Connection.php:664
|
42
|
+
|
43
|
+
660| // If an exception occurs when attempting to run a query, we'll format the error
|
44
|
+
|
45
|
+
661| // message to include the bindings with SQL, which will make this exception a
|
46
|
+
|
47
|
+
662| // lot more helpful to the developer instead of just the database's errors.
|
48
|
+
|
49
|
+
663| catch (Exception $e) {
|
50
|
+
|
51
|
+
> 664| throw new QueryException(
|
52
|
+
|
53
|
+
665| $query, $this->prepareBindings($bindings), $e
|
54
|
+
|
55
|
+
666| );
|
56
|
+
|
57
|
+
667| }
|
58
|
+
|
59
|
+
668|
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
Exception trace:
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
1 PDOException::("SQLSTATE[HY000] [1045] Access denied for user 'A'@'localhost' (using password: YES)")
|
68
|
+
|
69
|
+
C:\xampp\htdocs\B\vendor\laravel\framework\src\Illuminate\Database\Connectors\Connector.php:70
|
70
|
+
|
71
|
+
|
72
|
+
|
41
|
-
PDO::__construct("mysql:host=127.0.0.1;port=3306;dbname=B", "", "", [])
|
73
|
+
2 PDO::__construct("mysql:host=127.0.0.1;port=3306;dbname=B", "A", "A", [])
|
74
|
+
|
75
|
+
C:\xampp\htdocs\B\vendor\laravel\framework\src\Illuminate\Database\Connectors\Connector.php:70
|
42
76
|
|
43
77
|
```
|
44
78
|
|
@@ -56,6 +90,12 @@
|
|
56
90
|
|
57
91
|
|
58
92
|
|
93
|
+
DB_USERNAME=A
|
94
|
+
|
95
|
+
DB_PASSWORD=A
|
96
|
+
|
97
|
+
|
98
|
+
|
59
99
|
### 補足情報(FW/ツールのバージョンなど)
|
60
100
|
|
61
101
|
Xampp
|