|
Posted by Jerry Stuckle on 07/25/06 10:58
GD wrote:
> Jerry Stuckle wrote:
>
>>GD wrote:
>>
>>>Jerry Stuckle wrote:
>
>
>>The only other possibility I can think of is your command line MySQL on
>>the Linux box might be an older version and you're using pre-4.1
>>passwords on the Windows MySQL box. "mysql -V" would tell you the
>>version you're running on the Linux command line.
>>
>
>
> Hi Jerry,
>
> thanks for your suggestions, mysql -V reports that I'm running version:
>
> mysql Ver 14.7 Distrib 4.1.11, for redhat-linux-gnu (i386)
>
> so again it's post-v4.1.
> I've looked at the servername, user and password and tried all
> permutations, but with no success.
> The only other thing I can think of is there's some sort of permissions
> problem on the files, rather than the database, but I'm just clutching
> at straws now. Any help very gratefully received.
>
> Cheers
> Dan
>
Dan,
Hmmm, that's possible, I guess. On Linux 13 is "permission denied".
However, I would think you'd have problems even starting Apache if it
couldn't read the mysql libs.
Do you have anything in the [mysql] section of your php.ini?
Also, looking back through your first message - you indicate you get the
message:
Can't connect to MySQL server on 'SERVER' (13)
But your code puts out the messages:
"Could not connect to database: ".mysql_error();
and
"Could not select database: ".mysql_error();
Is this actually the case (your message isn't generated by your code),
or did you just mistype the message? Just want to make sure we're going
down the right path :-).
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
[Back to original message]
|