Edting the file my.cnf

When I type the command

sudo nano /etc/mysql/my.cnf

it takes me to a empty file in the current directory , where I try to copy paste the concerned mysql and mysqld test .
But the files never saves after it .
Please Help , I can’t go ahead because of this issue .


The location of my.cnf depends on what distribution you are using. I’d suggest checking if there is a file /etc/my.cnf. If it doesn’t exist, the other thing you could probably check for is whether the variable $MYSQL_HOME is set and see where it points to. Let me know if all of these things don’t exist.

Hope this helps.