> > Do you have a running MySQL on this machine?
> > This mysql.sock is used to make a direct socket connection to the MySQL server
> running on the same machine as the client.
> > This sort of connection is faster than connecting via TCP/IP, but is only
> available within one machine.
> > If you don't have a running MySQL server, start one with the "safe_mysqld"
> I have a running mysql serevr. And the mysql.sock file exists.
> How can I connect to the server using TCP/IP?
> I am using the PHP3 function: mysql_connect(string: hostname, string:
> username, string: password);
> How can I tell it that I want to connect through TCP/IP?
Just give in hostname the IP-address instead of "localhost" and it will use TCP/IP.