note 97826 added to function.mysql-connect

From: Date: Mon, 10 May 2010 23:12:55 +0000
Subject: note 97826 added to function.mysql-connect
Groups: php.notes 
Request: Send a blank email to php-notes+get-169132@lists.php.net to get a copy of this message
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. ---- Server IP: 69.147.83.197 Probable Submitter: 80.101.88.237 ---- Manual Page -- http://www.php.net/manual/en/function.mysql-connect.php Edit -- https://master.php.net/note/edit/97826 Del: integrated -- https://master.php.net/note/delete/97826/integrated Del: useless -- https://master.php.net/note/delete/97826/useless Del: bad code -- https://master.php.net/note/delete/97826/bad+code Del: spam -- https://master.php.net/note/delete/97826/spam Del: non-english -- https://master.php.net/note/delete/97826/non-english Del: in docs -- https://master.php.net/note/delete/97826/in+docs Del: other reasons-- https://master.php.net/note/delete/97826 Reject -- https://master.php.net/note/reject/97826 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#169132) next »