Let's say I've got two servers (a and b), each with 2 network cards, both in the same hosting location.
One card in each connects to the internet, and the other cards connect to each other.
I want one server (Server B) to act as the mysql server for the other server (Server A).
Now... when writing code/scripts on Server A -- how do I ensure that I'm passing data through the direct network card? If I use Server B's IP address, is it smart enough to route directly via the direct ethernet cable... or will it go through the router --- which would still be fast, since it's all local anyhow - but would make the second network card unncesssry.