Using Sail with multiple projects causes database confusion #54680
Replies: 1 comment
-
If it helps anyone else out–if you are familiar with DDEV then just switch to DDEV. That's what I just did and the problem is solved. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Sail has worked great for me when I have one project. I recently tried to set up a second Laravel project (that I would NOT run simultaneously) yet it seems I can only have one MySQL 8 database user and database? I can't figure out how to make it so I can switch between the two projects and keep both their databases.
I already asked ChatGPT and Gemini and I am not getting clear answers. Those tools advised me to do all kinds of things to the Docker compose file which makes me feel like using Docker isn't worthwhile. These containers should be... contained, and I shouldn't have to define alternate ports for every service in every project like it advised me to do. Again, I am not trying to run the projects simultaneously, I just want to be able to run them individually from the same computer.
If anyone knows how to make Sail behave more like DDEV in this regard, I'd appreciate the help as I am running out of hair to pull from my head.
Beta Was this translation helpful? Give feedback.
All reactions