title: Warning : 28000/1045 on x10hosting
body: <p>I've built a website to host on x10host.com, but I'm getting an error when I go onto my homepage.</p>
  
  <p>The error:</p>
  
  <pre><code>Warning: mysqli_connect(): (28000/1045): Access denied for user '***'@'localhost' (using password: YES) in /home/***/public_html/***/a/include/db.php on line 2
  </code></pre>
  
  <p>Line 2 of my code is:</p>
  
  <pre><code>$con = mysqli_connect("localhost","username_user","password","username_database");
  </code></pre>
  
  <p>My <code>user</code> and <code>database</code> are linked, and <code>user</code> has all privileges granted.</p>
  
  <p>What is the reason that I'm getting the <code>Warning</code>? All data appears correct, and it works fine on my computer localhost.</p>
  
  <p><strong>Resolved</strong></p>
  
  <p>I found out my database password was different from the hosting account password.</p>