Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
Unable to access db from website (credentials)
‘Ello, wondering if anyone’s ever encountered this one:
Setup laravel forge on a vps from digital ocean, got it all deployed and the website works, but I cannot access my mysql db. It connects successfully but is trying to input the incorrect credentials for access. It’s attempting to connect with my previous login credentials from when I was developing locally. It’s using my old localhost instead of my new ip, old username, password, etc etc. I’ve updated the .env file and .env.example just to see if it’d change anything, and I’ve updated the config/database.php file to try to access it from env variables and I’ve also tried to hard-code it without success - Still tries to login with my old credentials. I couldn’t install my repo to my server via forge so may that have something to do with it? I’m at a loss for this one.
I’ve tried asking different laravel forums but had no avail, so hopefully someone here may have an answer.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×