My Php script runs on my university campus server.
And I have installed mysql on my local machine.

The following statement doesn't establish a connection

$dbcnx = @mysql_connect("ipaddress", "root", "mypassword");

ipaddress is the address of the machine which has mysql installed.

Do I need to have additional permissions for accessing the mysql database on my machine from the php script.

The book Datasbase Driven Website using Php and MySql ran me smooth until here.

I appreciate any help.