lundi 19 février 2018

Laravel 5.5 unable to do initial migrate

I am trying to do the initial migration on a fresh laravel 5.5 installation. The home page works, but I seem to have a db setup issue. I'm using MariaDB and I am able to connect to my DB with a separate db client with no issues. Error is below:

[Illuminate\Database\QueryException] could not find driver (SQL: select * from information_schema.tables where table_schema = TenantHelper and table_name = migrations)

[PDOException] could not find driver

database.php

'connections' => [

    'sqlite' => [
        'driver' => 'sqlite',
        'database' => env('DB_DATABASE', database_path('database.sqlite')),
        'prefix' => '',
    ],

    'mysql' => [
        'driver' => 'mysql',
        'host' => env('DB_HOST', '127.0.0.1'),
        'port' => env('DB_PORT', '3306'),
        'database' => env('DB_DATABASE', 'forge'),
        'username' => env('DB_USERNAME', 'forge'),
        'password' => env('DB_PASSWORD', ''),
        'unix_socket' => env('DB_SOCKET', ''),
        'charset' => 'utf8mb4',
        'collation' => 'utf8mb4_unicode_ci',
        'prefix' => '',
        'strict' => true,
        'engine' => null,
    ],

.env file

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=TestApp
DB_USERNAME=ubuntu
DB_PASSWORD=secret



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire