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!
You need to set the file permission as readable and writable.
sudo chmod 644 my.cnf
sudo nano my.cnf
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With