Connecting to a remote db
Hello guys,This questions is about databases. Lets say i have a database at mywebsite1.com and i want the php script at mywebsite2.com to access the same databases as mywebsite1.com...
So in my php configuration file (where the db login details go), i assume
$dbhost='localhost'; would be changed to $dbhost='SOMETHING ELSE'; ???
I need to know what comes instead of localhost and where can i find that from my server. I was able to find something called
MYSQL_SOCKET /var/run/mysqld/mysqld.sock
is that it?
Thanks,