Re: mysql error

From: Date: Fri, 01 Apr 2005 12:16:22 +0000
Subject: Re: mysql error
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-212024@lists.php.net to get a copy of this message
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

« previous php.general (#212024) next »