質問編集履歴
2
ブロックにして見やすく変更させました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -23,6 +23,8 @@
|
|
23
23
|
DB_USERNAME=root
|
24
24
|
DB_PASSWORD=
|
25
25
|
|
26
|
+
```
|
27
|
+
```php
|
26
28
|
database.php
|
27
29
|
'default' => env('DB_CONNECTION', 'mysql'),
|
28
30
|
|
@@ -51,9 +53,9 @@
|
|
51
53
|
|
52
54
|
|
53
55
|
|
54
|
-
同じような質問をされていた方の解決法は大体は行いました。
|
55
56
|
|
56
57
|
### 補足情報(FW/ツールのバージョンなど)
|
58
|
+
```ここに言語を入力
|
57
59
|
Database server
|
58
60
|
|
59
61
|
Server: Localhost via UNIX socket
|
@@ -64,9 +66,4 @@
|
|
64
66
|
User: root@localhost
|
65
67
|
Server charset: UTF-8 Unicode (utf8)
|
66
68
|
|
67
|
-
|
69
|
+
```
|
68
|
-
|
69
|
-
Apache/2.2.34 (Unix) mod_wsgi/3.5 Python/2.7.13 PHP/7.4.1 mod_ssl/2.2.34 OpenSSL/1.0.2o DAV/2 mod_fastcgi/mod_fastcgi-SNAP-0910052141 mod_perl/2.0.11 Perl/v5.24.0
|
70
|
-
Database client version: libmysql - mysqlnd 7.4.1
|
71
|
-
PHP extension: mysqliDocumentation curlDocumentation mbstringDocumentation
|
72
|
-
PHP version: 7.4.1
|
1
見やすいように修正しました。よろしくお願いします。
title
CHANGED
File without changes
|
body
CHANGED
@@ -7,28 +7,15 @@
|
|
7
7
|
### 発生している問題・エラーメッセージ
|
8
8
|
|
9
9
|
```
|
10
|
+
エラーメッセージ SQLSTATE[HY000] [1049] Unknown database 'todo' (SQL: select * from information_schema.tables where table_schema = todo and table_name = migrations and table_type = 'BASE TABLE')
|
10
|
-
|
11
|
+
```
|
11
|
-
``` Illuminate\Database\QueryException
|
12
12
|
|
13
|
-
SQLSTATE[HY000] [1049] Unknown database 'todo' (SQL: select * from information_schema.tables where table_schema = todo and table_name = migrations and table_type = 'BASE TABLE')
|
14
13
|
|
15
|
-
at vendor/laravel/framework/src/Illuminate/Database/Connection.php:669
|
16
|
-
665| // If an exception occurs when attempting to run a query, we'll format the error
|
17
|
-
666| // message to include the bindings with SQL, which will make this exception a
|
18
|
-
667| // lot more helpful to the developer instead of just the database's errors.
|
19
|
-
668| catch (Exception $e) {
|
20
|
-
> 669| throw new QueryException(
|
21
|
-
670| $query, $this->prepareBindings($bindings), $e
|
22
|
-
671| );
|
23
|
-
|
14
|
+
### 該当のソースコード
|
24
|
-
673|
|
25
15
|
|
26
|
-
+34 vendor frames
|
27
|
-
35 artisan:37
|
28
16
|
|
29
|
-
|
30
|
-
|
17
|
+
```php
|
31
|
-
|
18
|
+
env
|
32
19
|
DB_CONNECTION=mysql
|
33
20
|
DB_HOST=127.0.0.1
|
34
21
|
DB_PORT=3306
|
@@ -59,8 +46,6 @@
|
|
59
46
|
]) : [],
|
60
47
|
],
|
61
48
|
|
62
|
-
```ここに言語名を入力
|
63
|
-
ソースコード
|
64
49
|
```
|
65
50
|
|
66
51
|
|
@@ -78,6 +63,7 @@
|
|
78
63
|
Protocol version: 10
|
79
64
|
User: root@localhost
|
80
65
|
Server charset: UTF-8 Unicode (utf8)
|
66
|
+
|
81
67
|
Web server
|
82
68
|
|
83
69
|
Apache/2.2.34 (Unix) mod_wsgi/3.5 Python/2.7.13 PHP/7.4.1 mod_ssl/2.2.34 OpenSSL/1.0.2o DAV/2 mod_fastcgi/mod_fastcgi-SNAP-0910052141 mod_perl/2.0.11 Perl/v5.24.0
|