如何在作曲家中解决此问题?

时间:2020-02-23 14:47:31

标签: php mysql laravel composer-php command

我是使用laravel 6的初学者,所以这是我遇到的错误消息,

1)SQLSTATE [42S02]:未找到基表或视图:1146表 “ forge.settings”不存在(SQL:从Function CONSECUTIVE_NUMBERS(strInput As String) As Boolean Dim a() As String Dim l As Long a = Split(strInput, ",") For l = 0 To UBound(a) - 3 If (Trim(a(l + 1)) - Trim(a(l)) = 1) And _ (Trim(a(l + 2)) - Trim(a(l + 1)) = 1) And _ (Trim(a(l + 3)) - Trim(a(l + 2)) = 1) Then CONSECUTIVE_NUMBERS = True Exit For End If Next l End Function 中选择*,其中 If (Trim(a(l + 1)) - Trim(a(l)) = 1) And _ (Trim(a(l + 2)) - Trim(a(l + 1)) = 1) And _ (Trim(a(l + 3)) - Trim(a(l + 2)) = 1) Then CONSECUTIVE_NUMBERS = Trim(a(l)) & "," & _ Trim(a(l + 1)) & "," & _ Trim(a(l + 2)) & "," & _ Trim(a(l + 3)) Exit For End If 为空)

2)SQLSTATE [42S02]:找不到基本表或视图:1146表 'forge.settings'不存在

即使我尝试了命令settings,但它存在相同的错误,该命令包括 auto_load_disabled,也不适合我。.

下面是代码,

在我的.env文件中:

php artisan migrate:fresh

命令php artisan serve, php artisan migrate不起作用,错误消息与上述1)和2)相同... 并且我还尝试复制可以在服务器上运行但仍然无法正常工作的另一个应用程序密钥。 我已经使用 APP_NAME=Laravel APP_ENV=local APP_KEY= APP_DEBUG=true APP_URL=http://localhost LOG_CHANNEL=stack DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=forge DB_USERNAME=root DB_PASSWORD= 服务器在phpmyadmin上创建了名为'php artisan migrate:key'的数据库。

我的database.php

forge

有人可以帮助我吗?请..

0 个答案:

没有答案