The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Locating my.cnf

Discussion in 'Database Discussions' started by KeB, Sep 1, 2011.

  1. KeB

    KeB Member

    Joined:
    Feb 22, 2010
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    I am trying to edit my.cnf but i am not sure which file is in use.

    I am running cPanel 11.30.2 on CentOS.
     
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    The default my.cnf file is typically in /etc/my.cnf location.
     
  3. KeB

    KeB Member

    Joined:
    Feb 22, 2010
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    Thanks for that.

    Does that file "work" globally then.

    I have just run mysqltuner and want to make the recommend changes, do i add them to this file?
     
  4. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Yes, you would add them to that file as the global MySQL configuration.
     
Loading...

Share This Page