'Getting error when trying to get into phpmyadin on Mac

I changed the password for the "root" user in phpmyadmin, now i get an error:

MySQL said: Documentation

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.

Tried editing the config.inc.php it says i don't have permission to edit.

Tried doing the terminal through xampp and still no luck. Any help?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source