|
Posted by Jerry Stuckle on 07/24/06 11:21
GD wrote:
> Hi All,
>
> I've got MySQL 5.0.21 running on Windows Server 2003, and php running
> on Apache on a Linux box (Fedora Core 4).
>
> Previously when the pages were running on an IIS server the connection
> was succesful, now I get:
>
> Can't connect to MySQL server on 'SERVER' (13)
>
> I'm connecting using:
>
> $db = mysql_connect("SERVER", "USER", "PASSWORD")
> or die("Could not connect to database:
> ".mysql_error());
> mysql_select_db("DATABASE", $db)
> or die("Could not select database: ".mysql_error());
>
> However from the linux box I can connect no problems using:
> mysql --host=SERVER -u USER -p
>
> Can anyone help point me in the right direction to solve this one?
> Cheers
> Dan
>
Which version of the MySQL client libraries are being used by
Apache/PHP? If it's pre-MySQL 4.1, it will use a different password
hashing algorithm.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
[Back to original message]
|