PHP 4.0 Bug #9812 Updated: Connection to a MySQL DB

From: Date: Sun, 18 Mar 2001 03:44:20 +0000
Subject: PHP 4.0 Bug #9812 Updated: Connection to a MySQL DB
Groups: php.dev 
Request: Send a blank email to php-dev+get-49267@lists.php.net to get a copy of this message
ID: 9812 Updated by: sniper Reported By: llevier@argosnet.com Old-Status: Feedback Status: Closed Bug Type: MySQL related Assigned To: Comments: I can reproduce this one with this script: <?php $db=mysql_connect("localhost", "user", ""); $rc=mysql_select_db("thisdbdoesnotexist",$db); if ($rc<=0) { echo mysql_error()."\n"; mysql_close($db); exit; } ?> It's mysql_error() in mysql itself that is broken. I can reproduce this within the mysql shell too.. Not a bug in PHP. -> closed. --Jani Previous Comments: --------------------------------------------------------------------------- [2001-03-17 15:55:32] sniper@php.net Can you please add a shortest possible script into this report which can be used to reproduce this? --Jani --------------------------------------------------------------------------- [2001-03-17 15:46:01] llevier@argosnet.com mysql_connect("localhost","user","") report an error that should not exist: SQL Server error, cannot select databaseAccess denied for user: '@localhost' to database xxx @localhost ? shouldn't it be user or user@localhost? --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9812&edit=2

« previous php.dev (#49267) next »