I have three Targets:
- Dev (local environment on my computer)
- Stage (staging environment on remote server)
- Live (live site on remote server).
All my Targets for files etc work properly - no issues there.
The DB Direct connections for Live and Dev, all work fine too and write/read to their correlating DBs set in the Database Connection.
However for the Staging Target (named Stage), all the files upload fine, but for some strange reason the Database Connection connects reads/writes to the Live target, and not its own DB connection as specified in the Database Connection dialogue for ‘Stage’’ target.
I have re-uploaded all the files to the staging server, but it still insists on reading/writing to the Live target’s Database instead, even though the Database connection parameters are all pointing to the Staging’s servers DB.
Image Below: Staging Target on remote server - all parameters are set for Staging DB which exists on the staging server. This for some reason reads/writes to the Live DB instead (image further below)??:
Image Below: Live Target on remote server - all parameters are set for Live DB which exists on the live server - this works fine and reads/write without issues: