質問編集履歴

8

修正点の補足追加

2019/11/27 11:53

投稿

Ms.yy
Ms.yy

スコア83

test CHANGED
File without changes
test CHANGED
@@ -222,6 +222,40 @@
222
222
 
223
223
 
224
224
 
225
+ ###homestead VM
226
+
227
+
228
+
229
+ ![イメージ説明](1d47ba7e014dd7e2816826ae58cdbc1b.png)
230
+
231
+
232
+
233
+
234
+
235
+
236
+
237
+ ###select version()
238
+
239
+ ```ここに言語を入力
240
+
241
+ select version()
242
+
243
+ -> ;
244
+
245
+ +-----------+
246
+
247
+ | version() |
248
+
249
+ +-----------+
250
+
251
+ | 5.6.43 |
252
+
253
+ +-----------+
254
+
255
+ ```
256
+
257
+
258
+
225
259
  ### 補足情報(FW/ツールのバージョンなど)
226
260
 
227
261
 

7

エラー追記

2019/11/27 11:53

投稿

Ms.yy
Ms.yy

スコア83

test CHANGED
File without changes
test CHANGED
@@ -188,6 +188,26 @@
188
188
 
189
189
 
190
190
 
191
+
192
+
193
+ ### SHOW GRANTS for 'test_user'@'127.0.0.1';(1行エラー)
194
+
195
+ ```ここに言語を入力
196
+
197
+ +---------------------------------------------------------------------------------------------------------------------------------------------+
198
+
199
+ | Grants for test_user@127.0.0.1 |
200
+
201
+ +---------------------------------------------------------------------------------------------------------------------------------------------+
202
+
203
+ | GRANT ALL PRIVILEGES ON *.* TO 'test_user'@'127.0.0.1' IDENTIFIED BY PASSWORD '*196BDEDE2AE4F84CA44C47D54D78478C7E2BD7B7' WITH GRANT OPTION |
204
+
205
+ +---------------------------------------------------------------------------------------------------------------------------------------------+
206
+
207
+ ```
208
+
209
+
210
+
191
211
  ###.envのDB_CONNECTION~DB_PASSWORDの行を試しに全て消してみた
192
212
 
193
213
  ```ここに言語を入力

6

.envのDB_CONNECTION~DB_PASSWORDエラー追記

2019/11/18 21:43

投稿

Ms.yy
Ms.yy

スコア83

test CHANGED
File without changes
test CHANGED
@@ -186,6 +186,22 @@
186
186
 
187
187
 
188
188
 
189
+
190
+
191
+ ###.envのDB_CONNECTION~DB_PASSWORDの行を試しに全て消してみた
192
+
193
+ ```ここに言語を入力
194
+
195
+ SQLSTATE[HY000] [1045] Access denied for user 'forge'@'localhost' (using password: NO) (SQL: select * from `folders`)
196
+
197
+ ```
198
+
199
+
200
+
201
+
202
+
203
+
204
+
189
205
  ### 補足情報(FW/ツールのバージョンなど)
190
206
 
191
207
 

5

権限追加

2019/11/18 21:40

投稿

Ms.yy
Ms.yy

スコア83

test CHANGED
File without changes
test CHANGED
@@ -146,6 +146,44 @@
146
146
 
147
147
 
148
148
 
149
+ ###SHOW GRANTS for 'test_user'@'127.0.0.1';
150
+
151
+ ```ここに言語を入力
152
+
153
+ -----------------------------------+
154
+
155
+ | Grants for test_user@127.0.0.1 |
156
+
157
+ +------------------------------------------------------------------------------------------------------------------+
158
+
159
+ | GRANT USAGE ON *.* TO 'test_user'@'127.0.0.1' IDENTIFIED BY PASSWORD '*4C9BE1AC4D3087CFB5E7D1DC8458031A6464B7C0' |
160
+
161
+ | GRANT ALL PRIVILEGES ON `test`.* TO 'test_user'@'127.0.0.1' |
162
+
163
+ +------------------------------------------------------------------------------------------------------------------+
164
+
165
+ ```
166
+
167
+
168
+
169
+ ###SHOW GRANTS for 'test_user'@'localhost';
170
+
171
+ ```ここに言語を入力
172
+
173
+ -----------------------------------+
174
+
175
+ | Grants for test_user@localhost |
176
+
177
+ +------------------------------------------------------------------------------------------------------------------+
178
+
179
+ | GRANT USAGE ON *.* TO 'test_user'@'localhost' IDENTIFIED BY PASSWORD '*4C9BE1AC4D3087CFB5E7D1DC8458031A6464B7C0' |
180
+
181
+ | GRANT ALL PRIVILEGES ON `test`.* TO 'test_user'@'localhost' |
182
+
183
+ +------------------------------------------------------------------------------------------------------------------+
184
+
185
+ ```
186
+
149
187
 
150
188
 
151
189
  ### 補足情報(FW/ツールのバージョンなど)

4

エラー画像追加

2019/11/18 10:13

投稿

Ms.yy
Ms.yy

スコア83

test CHANGED
File without changes
test CHANGED
@@ -163,3 +163,7 @@
163
163
  ![](a527740adb13a1555cc693c9deeda4d3.png)
164
164
 
165
165
  ![![イメージ説明](a6922b931e1bb59ad348caaa1175b66b.png)
166
+
167
+
168
+
169
+ ![イメージ説明](c487b2bb0c159be93b6e1f39533cd51b.png)

3

grants確認

2019/11/17 11:03

投稿

Ms.yy
Ms.yy

スコア83

test CHANGED
File without changes
test CHANGED
@@ -120,6 +120,28 @@
120
120
 
121
121
 
122
122
 
123
+ #rootログイン後 grants確認
124
+
125
+ ```ここに言語を入力
126
+
127
+ mysql> show grants;
128
+
129
+ +---------------------------------------------------------------------+
130
+
131
+ | Grants for root@localhost |
132
+
133
+ +---------------------------------------------------------------------+
134
+
135
+ | GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' WITH GRANT OPTION |
136
+
137
+ | GRANT PROXY ON ''@'' TO 'root'@'localhost' WITH GRANT OPTION |
138
+
139
+ +---------------------------------------------------------------------+
140
+
141
+ ```
142
+
143
+
144
+
123
145
 
124
146
 
125
147
 

2

127.0.0.1追加

2019/11/17 07:24

投稿

Ms.yy
Ms.yy

スコア83

test CHANGED
File without changes
test CHANGED
@@ -72,6 +72,60 @@
72
72
 
73
73
 
74
74
 
75
+
76
+
77
+
78
+
79
+
80
+
81
+
82
+
83
+
84
+
85
+ ### 127.0.0.1権限&ユーザー作成
86
+
87
+
88
+
89
+ ```ここに言語名を入力
90
+
91
+ grant all privileges on *.* to 'test_user'@'127.0.0.1' identified by 'pass' with grant option;
92
+
93
+ ```
94
+
95
+
96
+
97
+ ### host[127.0.0.1]で作成したユーザーでmysql ログイン
98
+
99
+
100
+
101
+ ```
102
+
103
+ $ mysql -u test_user -ppass
104
+
105
+ ```
106
+
107
+ ログイン後、エラーメッセージ
108
+
109
+
110
+
111
+ ```
112
+
113
+ Warning: Using a password on the command line interface can be insecure.
114
+
115
+ ERROR 1045 (28000): Access denied for user 'test_user'@'localhost' (using password: YES)
116
+
117
+
118
+
119
+ ```
120
+
121
+
122
+
123
+
124
+
125
+
126
+
127
+
128
+
75
129
  ### 補足情報(FW/ツールのバージョンなど)
76
130
 
77
131
 

1

laravel

2019/11/17 06:09

投稿

Ms.yy
Ms.yy

スコア83

test CHANGED
File without changes
test CHANGED
@@ -1,6 +1,6 @@
1
1
  ### 前提・実現したいこと
2
2
 
3
-
3
+ laravelを用いて
4
4
 
5
5
  http://localhost:8000/folders/1/tasksのURLにアクセスするとエラーが表示されてしまいます。
6
6