Support the ongoing development of Laravel.io →
Configuration Database Installation
Last updated 9 months ago.
0

bad ;env file

update ur username password

0

Here's my .env file

DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=homestead DB_USERNAME=homestead DB_PASSWORD=secret

I already did php artisan cache:clear and confg:clear but everytime I create project I got the same error.

What should I do? Thanks for the help!

Last updated 5 years ago.
0

santiagoelie said:

Here's my .env file

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=homestead
DB_USERNAME=homestead
DB_PASSWORD=secret

I already did php artisan cache:clear and confg:clear but everytime I create project I got the same error.

What should I do? Thanks for the help!

Is this section in your Homestead.yaml correct?:

databases:
    - homestead

Also, you could try to log into your database using SequelPro or MySQLWorkbench to test if the database exists.

Last updated 5 years ago.
0

FrontEndCoffee said:

santiagoelie said:

Here's my .env file

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=homestead
DB_USERNAME=homestead
DB_PASSWORD=secret

I already did php artisan cache:clear and confg:clear but everytime I create project I got the same error.

What should I do? Thanks for the help!

Is this section in your Homestead.yaml correct?:

databases:
   - homestead

Also, you could try to log into your database using SequelPro or MySQLWorkbench to test if the database exists.

This helps me a lot. Thanks so much! @FrontEndCoffee

0

Sign in to participate in this thread!

LoadForge

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2023 Laravel.io - All rights reserved.