[thelist] PHP/MySQL host setting

apathetic apatheticgenius at gmail.com
Mon Oct 30 13:04:54 CST 2006

Brooking, John wrote:
>    In all my work with PHP/MySQL so far (a few years now), I've always
> provided 'localhost' as the hostname argument in the mysql_connect call.
> This is not only on my local development machine, but also at the ISP's
> I've used (two different ones). I am now working with an ISP who does
> not seem to know what to tell me to use, and 'localhost' is not working,

Yes, your ISP should definitely be able to tell you how to connect to 
the MySQL database.

One other possibility is that you could try passing no arguments to 
mysql_connect and see if the default PHP settings get you in.


More information about the thelist mailing list