Postgresql: password authentication failed for user “postgres”

前端 未结 19 1770
时光取名叫无心
时光取名叫无心 2020-11-22 13:34

I have installed PostgreSQL 8.4, Postgres client and Pgadmin 3. Authentication failed for user \"postgres\" for both console client and Pgadmin. I have typed user as \"postg

19条回答
  •  无人共我
    2020-11-22 13:59

    This happens due to caching.

    When you run, php artisan config:cache, it will cache the configuration files. Whenever things get change, you need to keep running it to update the cache files. But, it won't cache if you never run that command.

    This is OK for production, since config don't change that often. But during staging or dev, you can just disable caching by clearing the cache and don't run the cache command

    So, just run php artisan config:clear, and don't run the command previously to avoid caching.

    Check original post

    Password authentication failed error on running laravel migration

提交回复
热议问题