0

I seem to be having a problem with artisan reading the default config/database.php file.

When I run for php artisan migrate:status - or any other migration related commands I get

exception 'PDOException' with message 'SQLSTATE[28000] [1045] Access denied for user 'homestead'@'localhost' (using password: YES)'

even though the default database connection name is set to sqlite, which doesn't require credentials of any kind.

My .env has APP_ENV=local and I'm running it under the local environment with PHP 5.6.2 using Mamp.

1
  • 1
    I know it's old but did you set in your .env DB_CONNECTION=sqlite? Commented Sep 16, 2015 at 7:05

1 Answer 1

2

After calling php artisan I've noticed there is a command to clear the configuration cache file php artisan config:clear - then run php artisan config:cache to cache it with the applied changes - which solved the problem.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.