#22196 [Com]: mysql_pconnect

From: Date: Thu, 13 Feb 2003 09:15:26 +0000
Subject: #22196 [Com]: mysql_pconnect
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-32994@lists.php.net to get a copy of this message
 ID:               22196
 Comment by:       velimira_bg@abv.bg
 Reported By:      velimira_bg@abv.bg
 Status:           Feedback
 Bug Type:         MySQL related
 Operating System: Windows XP
 PHP Version:      4.3.0
 New Comment:

Well, I use mysql-3.23.38.
For example, I have the following scripts(the two files are
consequent):
one.php
<?php

if (!($link = mysql_pconnect ($DB_SERVER,$DB_LOGIN, $DB_PASSWORD))) {
DisplayErrMsg();
      return 0 ;
}
$result = mysql_db_query("$DB", "select * from table");
//here the query works
?>

two.php
<?php

if (!($result = mysql_db_query("$DB", "select * from table")))
   echo mysql_error();
//here it ouputs an error:
//Access denied for user: '@localhost' to database 
?>

The same code works on other machine with an older version of PHP


Previous Comments:
------------------------------------------------------------------------

[2003-02-13 03:02:34] georg@php.net

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip



------------------------------------------------------------------------

[2003-02-12 19:37:40] nicos@php.net

We really need more informations.

Your script so we can try to reproduce. We also need your mysql
version...

Be more descriptive if you can please.

------------------------------------------------------------------------

[2003-02-12 19:16:08] velimira_bg@abv.bg

I have problems with mysql_pconnect. When I use it once, on the next
page the link is gone and I should connect again to the DB in order to
make queries. I did not have this problem with any of the oldest
versions.

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=22196&edit=1



Thread (6 messages)

« previous php.bugs (#32994) next »