Answer the question
In order to leave comments, you need to log in
How to fix Access denied for user 'forge'@'localhost' in Forge Laravel?
Engaged in the process of deploying a Laravel+Vue application to production. I don’t understand anything in this matter, so I’m trying different options at random. The first to be poked was Laravel Forge forge.laravel.com. What he does there is a mystery to me. In particular, where Forge takes settings, vendor, database if they are not in git. But it's okay, the questions are not pressing yet. At the moment I installed vps, Forge installed everything that is needed on it (php, etc.). Then I moved on to adding the git repository. Bitbucket download failed with message
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover
In Connection.php line 664:
SQLSTATE[HY000] [1045] Access denied for user 'forge'@'localhost' (using pa
ssword: NO) (SQL: select * from `perms`)
In Connector.php line 70:
SQLSTATE[HY000] [1045] Access denied for user 'forge'@'localhost' (using pa
ssword: NO)
Script @php artisan package:discover handling the post-autoload-dump event returned with error code 1
Answer the question
In order to leave comments, you need to log in
You have all the settings in the .env file, they specify access to the database. Set the correct settings, then reset the cache
php artisan cache:clear && php artisan config:cache
and then continue.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question