vandyczech's avatar

Problem conection to database

I have Laravel 5.4 on Ubuntu 16.04 with MariaDb, but I cant connect to the db. I see SQLSTATE[HY000] [1698] Access denied for user 'homestead'@'localhost' error, but in .env i have another data then is right ... Where I can rewrite them ... ? Right place for the database configuration is .env thats right?

DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3307 DB_DATABASE=dokumenty DB_USERNAME=phpmyadmin DB_PASSWORD=petr

0 likes
3 replies
manelgavalda's avatar

If it's not getting the configuration from your .env, maybe the configuration cached, try this:

php artisan config:clear
Ty's avatar

It doesn't look like it's picking up the entries your using in .ENV. You might also check your database.php file to make sure there is no custom modifications hard coded.

Please or to participate in this conversation.