Connect failed: Access denied for user 'root'@'localhost' (using password: NO)” in wordpress
<p>I have got error when try to insert data using PHP code to wordpress database.</p>

<p>Error like this :</p>

<blockquote>
  <p>Connect failed: Access denied for user 'username'@'localhost' (using password: NO)” in wordpress</p>
</blockquote>

<p>How can I fix this.</p>

<p>I'm working on live server.</p>