Return-Path: Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 52147 invoked by uid 500); 1 Feb 2002 19:02:32 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 52136 invoked from network); 1 Feb 2002 19:02:31 -0000 Received: from netra3.dhaka.net (202.84.33.14) by daedalus.apache.org with SMTP; 1 Feb 2002 19:02:31 -0000 Received: from [202.84.37.84] (helo=shogan) by netra3.dhaka.net with smtp (Exim 3.22 #9) id 16WivQ-0007n4-00 for users@httpd.apache.org; Fri, 01 Feb 2002 13:00:40 -0600 Message-ID: <004a01c1ab52$feaf64e0$5927fea9@shogan> From: "Md. Ashraful Anam" To: Subject: php can't connect to mysql Date: Sat, 2 Feb 2002 01:02:27 +0600 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0045_01C1AB85.48416590" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N ------=_NextPart_000_0045_01C1AB85.48416590 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Although it may seem it's not a problem of Apache, there's reason to = believe otherwise. Since I upgraded to WinXP pro my old scripts (all of which worked before = and still work on other machines) wont connect to MySQL. Installed the = old apache, php and mysql I was using. Everything worked but simple PHP = WONT connect to mysql. I have tried editing every tiny configuration = file and setting. PHP simply wont connect and read from the DB. Neither = will it give any error that it can't connect. It will return a blank as = if now row was there. Accessing from the dos prompt works fine. So I = upgraded all my installations Apache 1.3.23, PHP 4.1.1 and MySQL = 3.23.47-nt. Still no change. I can't work!! And any long page keeps = refreshing until I get the error page. I could not connect to the DB = using PHP in any way (all of which ofcourse worked before and works on = the hosting server)! Even phpMyAdmin won't work. I am using the same = method to connect to the DB as before:=20 $db =3D mysql_connect($SESS_DBHOST, $SESS_DBUSER,$SESS_DBPASS) or = die("Could not connect");=20 (with the variable defined before) but mine won't work! I also tried only=20 $db =3D mysql_connect();=20 and any other combination. It just won't work!=20 There has been quite some discussions about this on the web = (http://www.phpbuilder.com/forum/read.php3?num=3D4&id=3D5751&loc=3D0&thre= ad=3D5751). It seems this only occurs in WinXP. The reason we think it's = apache's problem is that everyone who has tried IIS on the same machine = and same configuration haven't had any problem. Anyone has any = suggestion?? I have looked through the Apache bug list and this isn't = listed there so I mailing in this list. I hope the Apache dev team will = look into it. ------=_NextPart_000_0045_01C1AB85.48416590 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Although it may seem it's not a problem = of Apache,=20 there's reason to believe otherwise.
 
Since I upgraded to WinXP pro my = old scripts=20 (all of which worked before and still work on other machines) wont = connect to=20 MySQL. Installed the old apache, php and mysql I was using. = Everything=20 worked but simple PHP WONT connect to mysql. I have tried editing every = tiny=20 configuration file and setting. PHP simply wont connect and read from = the DB.=20 Neither will it give any error that it can't connect. It will return a = blank as=20 if now row was there. Accessing from the dos prompt works fine. So I = upgraded=20 all my installations Apache 1.3.23, PHP 4.1.1 and MySQL 3.23.47-nt. = Still no=20 change. I can't work!! And any long page keeps refreshing until I = get the=20 error page. I could not connect to the DB using PHP in any way (all of = which=20 ofcourse worked before and works on the hosting server)! Even phpMyAdmin = won't=20 work. I am using the same method to connect to the DB as before:=20
 
$db =3D mysql_connect($SESS_DBHOST,=20 $SESS_DBUSER,$SESS_DBPASS) or die("Could not connect");
(with the variable defined = before)
 
but mine won't work! I also tried only =
$db =3D=20 mysql_connect();
and any other combination. It just won't work!=20
 
There has been quite some discussions = about this on=20 the web (http://www.phpbuilder.com/forum/read.php3?n= um=3D4&id=3D5751&loc=3D0&thread=3D5751).=20 It seems this only occurs in WinXP. The reason we think it's apache's = problem is=20 that everyone who has tried IIS on the same machine and same = configuration=20 haven't had any problem. Anyone has any suggestion?? I have looked = through the=20 Apache bug list and this isn't listed there so I mailing in this list. I = hope=20 the Apache dev team will look into it.
------=_NextPart_000_0045_01C1AB85.48416590--