Mysqli Connection with PHP

Saturday, July 5, 2014

I'm trying so hard to make connection to mysql, and so far I end up with this error :

Warning: mysqli_connect(): (HY000/1045): Access denied for user 'dev'@'localhost' (using password: YES) in D:\Programs\Xamp\htdocs\series\dynamic\AtomCMS\setup.php on line 5
Could not connect because: Access denied for user 'dev'@'localhost' (using password: YES)

I've just started developing a new web based system and here is the code I used to make connection to the database. Any help is appreciated.

$dbc = mysqli_connect('localhost','dev','123','pouya')OR die('Could not connect because: '.mysqli_connect_error());