Re: mysql error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



it cant find your host

mysql.timerescue.co.uk

try use an ip address... or try connect via the command line.


Glen Beamson wrote:

Hi,

I have suddenly started getting an 'unknown host' error when trying to connect via php (see below).

Unknown MySQL Server Host 'mysql.timerescue.co.uk' (0)2005


I have not changed any of my hostname/username/password code in the last 6 months and I can still connect to mysql.timerescue.co.uk via the command line interface.

Has anyone seen this before - any ideas at all - just started happening today! :o(

My code says this:

// Connecting, selecting database
$link = mysql_connect("mysql.timerescue.co.uk", "username", "password")
or die('Could not connect: ' . mysql_error().mysql_errno());

Many thanks,
Glen.

Send instant messages to your online friends http://uk.messenger.yahoo.com


--

Angelo Zanetti
Z Logic
[c] +27 72 441 3355
[t] +27 21 464 1363
[f] +27 21 464 1371
www.zlogic.co.za

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux