title: Can not modify config.inc.php
body: <p>I changed password in phpmyadmin for root (there was no password actually) and now when I go to phpmyadmin, I receive this error:</p>
  
  <p>MySQL said: Documentation</p>
  
  <blockquote>
    <p>Cannot connect: invalid settings.  mysqli_real_connect():
    (HY000/1045): Access denied for user 'root'@'localhost' (using
    password: NO)  phpMyAdmin tried to connect to the MySQL server, and
    the server rejected the connection. You should check the host,
    username and password in your configuration and make sure that they
    correspond to the information given by the administrator of the MySQL
    server.</p>
  </blockquote>
  
  <p>I went to config.inc.php to add the password there, but I can't save modified config.inc.php, it shows that I don't have enough permissions to save it.</p>
  
  <p>I went to google and searched for issues. I tried to change permission through terminal with 644, but it didn't work for me.</p>
  
  <p>I even tried to reinstall XAMPP, but I still get the same error.</p>
  
  <p>Now I have phpmyadmin on my computer, which doesn't work at all and I can't change it.</p>
  
  <p>Please help me, how can I fix it?</p>
  
  <p>Also I am using Mac and XAMPP.</p>