There are information about this that comes with all installations of mysql (and as I only use this myself as root, I havn't looked into it much), and I think it would require changing hosts and/or root password.
That way a mysql_connect("database","root","") wont help as its missing the right pass, that only you know...
Might lead you into the right directions tho.