Closed michielkempen closed 4 years ago
@michielkempen Can you try deleting your storage/runtime/cache
folder?
Thank you very much for the response, @brandonkelly. This solves the problem! 🙏🏼
After so many hours of debugging, I was literally starting to go crazy.
But this is an issue with the framework, right? I don't think I came across any official resource stating that you should remove your cache folder after the installation process.
Nope, it’s a bug that’s already been fixed for the next release (coming tomorrow) – ec201448b318fd32f00d3e31adb8cb9d89b4ea63. Sorry you got bit by it! There was no GitHub issue at the time, so I’ll point the release note to this one.
Craft 3.4.19 is out now with that fix.
Description
For the past 5 hours, I have been trying to set up a new Craft CMS application, but I keep running into the same Database Connection Error.
My setup is as follows:
db
.Once the PHP container is started, I run the following command to configure Craft:
As you can see in the console logs, everything goes well. Craft is able to connect to my database and create all the necessary tables.
However, as soon as the configuration process has finished, whatever I do; visit the dashboard, run a console command, etc. I always get the Database Connection Error shown below.
I tried every single solution that I could think of, but I cannot figure out why Craft is not able to reach the database. In my opinion, it doesn't even make sense, as Craft uses exactly the same credentials as during the installation only seconds ago when everything went well.
Does anyone have an idea what I could be missing here?
Additional info
.env
file after the configuration: