Reply to Re: mysql_connect error Apache Web server to Windows hosted database

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация