title: PHP Warning: mysqli_connect(): (HY000/1044): Access denied for user
body: <p>I'm very new to this so hopefully its not too stupid a question.</p>
  
  <p>I am building a basic app, at the moment its just the Login and registers screens. I have made a database on phpMyadmin and am using cPanel to put my .php files so the database can be updated from the registration screen. 
   The app is building fine with no error and it all works fine till communicating with the database. I then get the below errors. </p>
  
  <blockquote>
    <p>[08-Feb-2017 20:39:49 UTC] PHP Warning:  mysqli_connect(): (HY000/1044): Access denied for user 'studyfor_Scott'@'localhost' to database 'studyfor_StudentInfo.StudentRegister' in 
        /home/studyfor/public_html/Register.php on line 5</p>
    
    <p>[08-Feb-2017 20:39:49 UTC] PHP Warning:  mysqli_prepare() expects parameter 1 to be mysqli, boolean given in /home/studyfor/public_html/Register.php on line 14</p>
    
    <p>[08-Feb-2017 20:39:49 UTC] PHP Warning:  mysqli_stmt_bind_param() expects parameter 1 to be mysqli_stmt, null given in /home/studyfor/public_html/Register.php on line 15</p>
    
    <p>[08-Feb-2017 20:39:49 UTC] PHP Warning:  mysqli_stmt_execute() expects parameter 1 to be mysqli_stmt, null given in /home/studyfor/public_html/Register.php on line 16</p>
  </blockquote>
  
  <p>Any help would be great.</p>
  
  <p>Thank you </p>