Код: Выделить всё
root@48cc4e852d29:/var/www/html# php artisan migrate
Illuminate\Database\QueryException
SQLSTATE[HY000] [2002] No such file or directory (SQL: select * from information_
schema.tables where table_schema = church and table_name = migrations and table_type = 'BASE TABLE')
at vendor/laravel/framework/src/Illuminate/Database/Connection.php:712
708▕ // If an exception occurs when attempting to run a query, we'll format the error
709▕ // message to include the bindings with SQL, which will make this exception a
710▕ // lot more helpful to the developer instead of just the database's errors.
711▕ catch (Exception $e) {
➜ 712▕ throw new QueryException(
713▕ $query, $this->prepareBindings($bindings), $e
714▕ );
715▕ }
716▕ }
+33 vendor frames
34 artisan:37
Illuminate\Foundation\Console\Kernel::handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
Код: Выделить всё
APP_NAME=Laravel
APP_ENV=local
APP_KEY=base64:Hb5jKxtoJ5Pixeznb9FaaFMwr9/zp+IypWXUg3D8k30=
APP_DEBUG=true
APP_URL=http://localhost
LOG_CHANNEL=stack
LOG_DEPRECATIONS_CHANNEL=null
LOG_LEVEL=debug
DB_CONNECTION=mysql
DB_HOST=localhost
DB_PORT=3306
DB_DATABASE=laravel
DB_USERNAME=root
DB_PASSWORD=
попробовал изменить файл env, изменил
Код: Выделить всё
DB_PORT=3306 to 8081
DB_DATABASE=laravel to church
что мне нужно сделать, чтобы решить эту проблему?
Подробнее здесь: https://stackoverflow.com/questions/787 ... file-maybe
Мобильная версия