|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2001-03-17 15:46 UTC] llevier at argosnet dot 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?
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 14:00:01 2025 UTC |
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