I recently ran into the issue where I was working on two Laravel projects: one using Docker, the other using XAMPP. I started my Docker project earlier, so I gave it access to port 3306.
When I went to implement the XAMPP project, I tried editing all the DB settings in the proper places to use the port 3308 so that it didn’t collide with my DB docker container. Problem was, now I couldn’t connect to phpMyAdmin. I was receiving errors that the settings were incorrect. So what was the solution?
2
Answers
The solution was to reset all of my settings to 3306,
docker-compose down
my Docker project, and then restart the XAMPP services. Worked like a charm.So I'll note a couple things:
php --ini
to check where your CLI ini file is located.I suggest to try devilbox