hi
would you plz tell me what do the arguments of the following mysql statement stand for?
mysql_connect([host][:port][:socket][, username][, password])
i mean what i can put instead of host, port , and socket.
thanx alot
host = the name (or ip) of the mysql host. port = the port the server is listening on. username = your username to access the server. password = duh?
and arguments are optional.
pretty self explanitory really.... ?
thanx so much for the info .........
but i still don't know what socket refers to ...... can any one tell me?
Did you read the examples in the manual? http://us3.php.net/manual/en/function.mysql-connect.php
Sockets are one way in which a client can communicate with a server. mysql will create a file with socket information in it when the server is installed. You can then connect by pointing to the file.
I have never used it myself. I would say that using a host name and a (optional) port is probably the norm.
thanx a million for this good info.