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.

How do I disable MySQL update

Discussion in 'General Discussion' started by JasonUK, Jun 14, 2006.

  1. JasonUK

    JasonUK Member

    Joined:
    Apr 11, 2005
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Ok this is my problem. I needed MySQL 5. I also needed PHP5. So I had to manually using an rpm MySQL 5.0.21 just to get PHP5 working with the easyapache script. So MySQL is fine. However every night it tries to update and reverts back to 5.0.18. Now this doesn't work with PHP5 on my box. So I have to each night re-run the rpm, set a new root MySQL password and if I go out like tonight, I end up with hours of downtime. How do I disable the MySQL update or better yet force it to keep my 5.0.21?
     
  2. JasonUK

    JasonUK Member

    Joined:
    Apr 11, 2005
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Ok I kinda fixed it. I just updated using EDGE. Not something I feel massively comfortable about but it is worth it to get MySQL going. Thanks.
     
  3. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    If you needed to do this in the future, you can simply:

    touch /etc/mysqlupdisable
     
  4. Bulent Tekcan

    Bulent Tekcan Well-Known Member

    Joined:
    May 11, 2004
    Messages:
    177
    Likes Received:
    0
    Trophy Points:
    16
    I tried this command and check this under /etc it is there.But after 1 day this is not there.

    Any idea why /etc/mysqlupdisable deleted there ?

    Thanks
     
  5. Nhojohl

    Nhojohl Well-Known Member

    Joined:
    Nov 28, 2006
    Messages:
    101
    Likes Received:
    0
    Trophy Points:
    16
    Try creating it and doing:

    Code:
    chattr +i /etc/mysqlupdisable
    This will make it un-editable and un-removable. If you want to change it back so it is no longer protected do:

    Code:
    chattr -i /etc/mysqlupdisable
     
  6. Bulent Tekcan

    Bulent Tekcan Well-Known Member

    Joined:
    May 11, 2004
    Messages:
    177
    Likes Received:
    0
    Trophy Points:
    16
    Thanks for this info.I'll try this.

    Thanks ;)
     
Loading...

Share This Page