timgavin
182
5
Forge

Can't Deploy

Posted 2 years ago by timgavin

I just created a server and site on Forge, and now I'm trying to deploy from GitHub and I keep receiving the following error.

[PDOException]
SQLSTATE[HY000] [1045] Access denied for user 'forge'@'localhost' (using password: NO)  

Script php artisan optimize handling the post-install-cmd event returned with error code 1

I did not install a database on this server because I'm using a separate database server. I've tried deploying by updating the .env with the database credentials on the database server but it doesn't work; no matter what I do I receive that error message.

Do I need to have a database on this new server even though I'm not going to use it?

Edit: I have installed a database on this server, named it forge and added the user forge and it's still giving me the same problem.

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