note 97826 deleted from function.mysql-connect by danbrown

From: Date: Mon, 10 May 2010 23:25:05 +0000
Subject: note 97826 deleted from function.mysql-connect by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-169133@lists.php.net to get a copy of this message
Note Submitter: Mike ---- Hi all, Weird stuff going on with my code here: $cn=mysqli_connect('localhost','myname','mypass', 'mydb') or die(mysql_error()); This always dies with: Warning: mysqli_connect() [function.mysqli-connect]: (42000/1044): Access denied for user ''@'localhost' to database mydb on line /* .... */ Why is this username empty??? I am using PHP Version 5.2.12 on a synology NAS... Never had this weird issue before... BTW: using phpMyAdmin is no issue at all... that works fine.

« previous php.notes (#169133) next »