如何在cPanel帐户中更改/etc/my.cnf [英] How to change /etc/my.cnf in cPanel account

查看:174
本文介绍了如何在cPanel帐户中更改/etc/my.cnf的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了一个帐户,并且想修改/etc/my.cnf,但是它说它是只读的,我该怎么办?

解决方案

要更改mysql配置,您应该以root用户身份登录



如果不检查您是否具有sudo权限来修改mysql配置文件, / p>

如果仍然存在问题,则需要使用以下命令检查文件上是否设置了属性

  lsattr /etc/my.cnf 

显示您应用到它的属性,使用以下命令

  chattr -aiu /etc/my.cnf 


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

解决方案

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 

这篇关于如何在cPanel帐户中更改/etc/my.cnf的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆