Need help troubleshooting DB connection
I had a similar issue where my '*' was being chosen all of the time, meaning all my environments used the same DB details.

Possibly try splitting it up, and not have a '*' for your DB details, for any environment?