Database [mysqli] is not recognized

Posted 1 year ago by RajanSingh

Hello,

I installed fresh laravel 5.5. When I am trying to migrate database then I got "database [mysqli] is not recognized" error. My .env file is

     DB_CONNECTION=mysqli

DB_HOST=127.0.0.1

DB_PORT=3306

DB_DATABASE=test

DB_USERNAME=root

DB_PASSWORD=

My config/database.php is

    'mysqli' => [

        'driver' => 'mysqli',

        'host' => env('DB_HOST', '127.0.0.1'),

        'port' => env('DB_PORT', '3306'),

        'database' => env('DB_DATABASE', 'test'),

        'username' => env('DB_USERNAME', 'root'),

        'password' => env('DB_PASSWORD', ''),

        'unix_socket' => env('DB_SOCKET', ''),

        'charset' => 'utf8mb4',

        'collation' => 'utf8mb4_unicode_ci',

        'prefix' => '',

        'strict' => true,

        'engine' => null,
    ],

How do I resolve this.

Thanx.

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.