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