#23492 [NEW]: mysql_connect() sometimes fails to use password
From: dziugas dot baltrunas at m-1 dot lt
Operating system: FreeBSD 4.8-RELEASE
PHP version: 4.3.1
PHP Bug Type: MySQL related
Bug description: mysql_connect() sometimes fails to use password
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 bug report at http://bugs.php.net/?id=23492&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=23492&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=23492&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=23492&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=23492&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=23492&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=23492&r=support
Expected behavior: http://bugs.php.net/fix.php?id=23492&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=23492&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=23492&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=23492&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23492&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=23492&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=23492&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=23492&r=gnused
Thread (16 messages)
- dziugas dot baltrunas at m-1 dot lt
- nicos@php.net#23492 [Opn->Fbk]: mysql_connect() sometimes fails to use password
- dziugas dot baltrunas at m-1 dot lt#23492 [Fbk->Opn]: mysql_connect() sometimes fails to use password
- sniper@php.net#23492 [Opn->Fbk]: mysql_connect() sometimes fails to use password
- dziugas dot baltrunas at m-1 dot lt#23492 [Fbk->Opn]: mysql_connect() sometimes fails to use password
- sniper@php.net#23492 [Opn->Fbk]: mysql_connect() sometimes fails to use password
- sniper@php.net#23492 [Fbk]: mysql_connect() sometimes fails to use password
- dziugas dot baltrunas at m-1 dot lt#23492 [Fbk->Opn]: mysql_connect() sometimes fails to use password
- dziugas dot baltrunas at m-1 dot lt#23492 [Opn]: mysql_connect() sometimes fails to use password
- dziugas dot baltrunas at m-1 dot lt#23492 [Opn]: mysql_connect() sometimes fails to use password
- dziugas dot baltrunas at m-1 dot lt#23492 [Opn]: mysql_connect() sometimes fails to use password
- edink@php.net#23492 [Opn->Bgs]: mysql_connect() sometimes fails to use password
- nefer at ib dot ru#23492 [Com]: mysql_connect() sometimes fails to use password
- dziugas dot baltrunas at m-1 dot lt#23492 [Bgs]: mysql_connect() sometimes fails to use password
- nefer at ib dot ru#23492 [Com]: mysql_connect() sometimes fails to use password
- dziugas dot baltrunas at m-1 dot lt#23492 [Bgs]: mysql_connect() sometimes fails to use password