Skip to content

Database is not properly configured. #2536

@jamols09

Description

@jamols09

I have properly set all the configurations for Laravel .env and database.php
Also ran db with mongod at the terminal w/ admin privilege.
What am I missing here?

.env

DB_CONNECTION=mongodb
DB_HOST=127.0.0.1
DB_PORT=27017
DB_DATABASE=homestead
DB_USERNAME=
DB_PASSWORD=

database.php

'mongodb' => [
            'driver' => 'mongodb',
            'host' => env('DB_HOST', 'localhost'),
            'port' => env('DB_PORT', 27017),
            'database' => env('DB_DATABASE', 'homestead'),
            'username' => env('DB_USERNAME'),
            'password' => env('DB_PASSWORD'),
            'options' => [],
        ],

image
image

How is my database not properly configured?

I'm sure that this is more on db issues since it indicates not properly configured rather than not configured

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions