title: Mysqli_real_connect(): (HY000/1045): Access denied for user 'root'@'localhost' (using password: NO)
body: <p>I'm using xampp. I also downloaded MySQL Database.
  Then I have created a database with Mysql Database, with </p>
  
  <ul>
  <li>username: root,password = 123456789.</li>
  </ul>
  
  <p>Then I start Xampp Apache and Mysql. 
  When I try to connect to localhost:8080/phpmyadmin, I receive this kind of error:</p>
  
  <blockquote>
    <p>Messaggio di MySQL: Documentazione</p>
    
    <p>Impossibile connettersi: impostazioni non valide. 
    mysqli_real_connect(): (HY000/1045): Access denied for user 
    'root'@'localhost' (using password: NO)</p>
    
    <p>phpMyAdmin ha provato a connettersi al server MySQL, e il server ha
    rifiutato la connessione. Si dovrebbe controllare il nome dell'host,
    l'username e la password nel file di configurazione ed assicurarsi che
    corrispondano alle informazioni fornite dall'amministratore del server
    MySQL.</p>
  </blockquote>
  
  <p>So I think that I should modify the file:<code>config.inc.php</code> but the problems are: </p>
  
  <ol>
  <li>I can't modify this file on Mac because it says that I'm not the superuser ( But I am). </li>
  <li>I don't know what I should modify.</li>
  </ol>
  
  <p>Can you help me to solve this problem? I need to create a simple login form in Java and I need the connection with a database (maybe you know some other solutions to do this.) 
  Thank you.</p>