How to change /etc/my.cnf in cPanel account

邮差的信 提交于 2020-01-06 15:17:15

问题


I have create an account and I want to modify /etc/my.cnf but it says it is read-only, what should I do?


回答1:


To change the mysql configuration you should be logged in as root

if not check if you have sudo privileges to modify the mysql configuration file

If you still has issues with it you need to check if the file has the attribute set on it using the below command

lsattr  /etc/my.cnf 

if its shows you the attributes applied to it remove it using below command

chattr -aiu  /etc/my.cnf 


来源:https://stackoverflow.com/questions/21509406/how-to-change-etc-my-cnf-in-cpanel-account

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!