This is quite odd, but I have a script that was until now calling queries on a db that existed only on another server, and is now on my new server with a different name. However, the “host” was always localhost. The user connected to the non-existent DB on localhost, and somehow connected to the existing database instead?
Can someone please explain to me how everything is working properly even though it most certainly should not be? There is only one database currently.
Thanks for explaining, I’m confused.
As I said, just a guess, but if the database user only has access to the correct database, it could be that it automatically selects that database.
No known facts here, just what I think could be involved (which is why I originally posted this as a comment rather than solution).