I'm attempting to edit my my.cnf file to allow remote access to mysql (by changing the bind-address). However, I'm getting a "Error writing my.cnf: Permission denied" error when I try to save (using pico through SSH).
Running $ lsattr my.cnf
returns ---------------- my.cnf
What do I need to do to be able to edit this file?
Thanks!
sudo
needs to be used for those commands. – Darbiesmy.cnf
? Root? Then you need to become root also (su
orsudo
). Also you need to change the permissions so that mysql user will be able to read it (as root, you can write also to files with these permissions). – Parliamentarian