Daniel1836
2 weeks ago

Trouble connecting to database using Laravel on Host Gator

Posted 2 weeks ago by Daniel1836

This is the error I get.

Access denied for user 'root'@'localhost' (using password: NO)

I am trying to mess with my .env file. Here is what I have.

DB_CONNECTION=mysql DB_HOST=localhost DB_PORT=3306 DB_DATABASE=laravel DB_USERNAME=root DB_PASSWORD=

I have tried creating a user and password and giving privileges for the database and entering it in the .env, but that didn't work.

Thanks

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