#23492 [Opn->Fbk]: mysql_connect() sometimes fails to use password

From: Date: Mon, 05 May 2003 14:29:19 +0000
Subject: #23492 [Opn->Fbk]: mysql_connect() sometimes fails to use password
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-39081@lists.php.net to get a copy of this message
 ID:               23492
 Updated by:       nicos@php.net
 Reported By:      dziugas dot baltrunas at m-1 dot lt
-Status:           Open
+Status:           Feedback
 Bug Type:         MySQL related
 Operating System: FreeBSD 4.8-RELEASE
 PHP Version:      4.3.1
 New Comment:

Thanks for the report.

Do you retrieve your password from any dynamic way or is it static?



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

[2003-05-05 08:54:22] dziugas dot baltrunas at m-1 dot lt

We are currently using MySQL 4.0.12. This bug occurs occasionaly and
there is no way to guess what makes it appear. Even if there are
"hardcoded" username and password into the function, i.e. not passing
variables to it, like mysql_connect("mysql.host", "public", "secret"),
PHP reports Warning:

[05-May-2003 14:06:17] PHP Warning:  mysql_connect() [<a
href='http://www.php.net/function.mysql-connect'>function.mysql-connect</a>]:
Access denied for user: 'public@10.10.12.254' (Using password: NO) in
/var/www/sala.lt/htdocs/skundai/classes/db.php on line 10

So the problem is that warning (or mysql_error() message) about not
using password is not correct.


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


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



Thread (16 messages)

« previous php.bugs (#39081) next »