I want to add the socket=/tmp/mysql.sock to my.cnf file:My steps:1)vi /etc/my.cnf2add this line in the my.cnf:socket=/tmp/mysql.sock3) but when I use :wq to quit:I get this issue:/private/etc/my.cnf E212: Can't open file for writingThen I press enter it will go back to the my.cnf's content.Additional -1$ id aircraftdeMacBook-Pro:~ ldl$ id   uid=501(ldl) gid=20(staff) groups=20(staff),701(com.apple.sharepoint.group.1),12(everyone),61(localaccounts),79(_appserverusr),80(admin),81(_appserveradm),98(_lpadmin),33(_appstore),100(_lpoperator),204(_developer),395(com.apple.access_ftp),398(com.apple.access_screensharing),399(com.apple.access_ssh),702(com.apple.sharepoint.group.2)Additional -2$ ls -l /private/etc/my.cnfls: /private/etc/my.cnf: No such file or directoryAdditional -3In my mysql/support-files
/private/etc/my.cnf E212: Can't open file for writing
linux