i have a question if i have a LAN based on three computers and suppose computer1 has a mysql db and i want to access to it from computer2 all i have to do its put "computer1" against "localhost" on setHostName that´s all??

i mean:

my_connect->setHostName("computer1");

against
my_connect->setHostName("localHost");