Re: mysql_connect stops via php
- From: Jerry Stuckle <jstucklex@xxxxxxxxxxxxx>
- Date: Sun, 04 Nov 2007 20:11:33 -0500
farhan wrote:
Hi Jerry,
I'm not sure how to control the length of time to wait other than the
timeout value for mysql.connect which phpinfo() says is 60 seconds.
Firefox seems to try for about 5 seconds (you know the browser wait
thingy) before giving up. The MySql server seems to be fine as I can
connect to it at that address and username/password via the command
line.
But can you do it from a command line on your web server? That is, are you running your web server on your local machine, or is it on another one? And if it is another server, can you connect to the MySQL database from the command line there?
On a related note, I did forget to mention a bit of history. To start
with my Linux installation contained MySql 4.x but when installing on
Windows, I used 5.1. So consequently when I tried to connect from the
4.x client to the 5.1 server, it said something about not being about
to authenticate, so I downloaded 5.0 on linux and everything worked
fine on the command line. However, phpinfo() still reported the MySQL
client as 4.x. Not finding any installation scripts, I manually
copied all executables to /usr/bin and all libraries to /lib. Now
phpinfo is correct.
BTW, my php version is 4.3.10.
IOW you could still have mixed file versions - some from 4.x and some from 5.1. That doesn't sound good.
What happens if you try to connect with an invalid userid/password and/or to an invalid system?
-Farhan
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@xxxxxxxxxxxxx
==================
.
- Follow-Ups:
- Re: mysql_connect stops via php
- From: farhan
- Re: mysql_connect stops via php
- From: farhan
- Re: mysql_connect stops via php
- From: farhan
- Re: mysql_connect stops via php
- From: farhan
- Re: mysql_connect stops via php
- References:
- mysql_connect stops via php
- From: farhan
- Re: mysql_connect stops via php
- From: macca
- Re: mysql_connect stops via php
- From: farhan
- Re: mysql_connect stops via php
- From: Jerry Stuckle
- Re: mysql_connect stops via php
- From: farhan
- mysql_connect stops via php
- Prev by Date: Re: Mailer Error: Language string failed to load
- Next by Date: Re: Mailer Error: Language string failed to load
- Previous by thread: Re: mysql_connect stops via php
- Next by thread: Re: mysql_connect stops via php
- Index(es):
Relevant Pages
|