title: Warning: mysql_connect(): Access denied for user 'root'@'localhost' (using password: NO)
body: <p>I have two questions.</p>
  
  <p>1) In phpmyadmin each time I log in it gives this error</p>
  
  <blockquote>
    <p>Connection for controluser as defined in your configuration failed.</p>
  </blockquote>
  
  <p>2) I'm trying to register an html form to the database but i got this warning says:</p>
  
  <blockquote>
    <p>Warning: mysql_connect(): Access denied for user 'root'@'localhost' (using password: NO)</p>
  </blockquote>
  
  <h2>The Code:</h2>
  
  <pre><code>&lt;?php 
      mysql_connect("localhost", "root", ""); 
      mysql_select_db("bookaride"); 
  ?&gt;
  </code></pre>
  
  <h2>Edit:</h2>
  
  <pre><code>/* Authentication type and info */ 
  $cfg['Servers'][$i]['auth_type'] = 'cookie'; 
  // Authentication method (config, http or cookie based) 
  $cfg['Servers'][$i]['user'] = 'root'; 
  $cfg['Servers'][$i]['password'] = ''; 
  $cfg['Servers'][$i]['extension'] = 'mysqli'; 
  $cfg['Servers'][$i]['AllowNoPassword'] = true; 
  $cfg['Lang'] = '';
  </code></pre>