Debug help, `Connection for controluser as defined in your configuration failed`, cannot modify config-db.php file to update password


#1

Went through setting up phpmydamin as per Setting Up phpMyAdmin
worked well and got phpmyadmin working, - however - I updated my user through phpmyadmin GUI instead
of using mysql cli and now I get get error:
Connection for controluser as defined in your configuration failed. in phpmyadmin. I clicked reload the privileges within phpmyadmin to no avail.

I tried to edit /etc/phpmyadmin/config-db.php file through terminal yet seems that it is read only, so I cannot update the password to this file, any help?


#2

woops, sudo did the trick, problem solved