Skip to main content

Can I uninstall MySQL on DNS Only servers?

Comments

14 comments

  • quietFinn
    We have MySQL server disabled in DNS Only servers without problems (but cPHulk is disabled also).
    0
  • cPRex Jurassic Moderator
    Sure - if you aren't using any tools that require databases it's fine to disable that.
    0
  • Kent Brockman
    Sure - if you aren't using any tools that require databases it's fine to disable that.

    That's why I asked in the first place: does cpHulk require MySQL to do its work? I don't see any other database in /var/lib apart from the mysql internal ones, and one allegedly belonging to cphulk but its datafiles last modified date seems to be unchanged since 2019.
    0
  • cPRex Jurassic Moderator
    Since version 62, cPHulk uses an SQLite database and not MySQL.
    0
  • Kent Brockman
    Great. So you could say that under a standard and up to date DNS Only setup, YOU DONT NEED TO HAVE MYSQL INSTALLED. Is this correct? Just to be very aware of this, when was the v62 released?
    0
  • cPRex Jurassic Moderator
    Yes, correct. 62 came out in 2016.
    0
  • cPRex Jurassic Moderator
    You could also just turn the service off as well before removing it to ensure there are no conflicts, but I would not expect any.
    0
  • Kent Brockman
    You could also just turn the service off as well before removing it to ensure there are no conflicts, but I would not expect any.

    I exactly did that now, and let's wait a couple days to be sure no problems arise at all.
    0
  • Kent Brockman
    Yes, correct. 62 came out in 2016.

    That's pretty odd. If this server was originally installed at the end of 2017, so cpHulk was already using sqlite, why would the install script have installed and enabled MySQL if it's no need? Maybe a forgotten routine? Then make dev staff check if current install script is still deploying MySQL or not, and if so, why would it be needed? ;-)
    0
  • Kent Brockman
    Talking about oddities on DNS Only... I bring one more thing to make your devs hate me (LOL): by looking the list of processes I found wp-toolkit is present on DNS Only. What the...? See: # ps aux|grep toolkit wp-tool+ 1454 0.0 0.6 362544 3432 ? Ss Sep22 0:01 /usr/bin/sw-engine /usr/local/cpanel/3rdparty/wp-toolkit/bin/run-script scheduled-tasks-executor.php wp-tool+ 1457 0.0 0.4 372832 2396 ? Ss Sep22 1:02 /usr/bin/sw-engine /usr/local/cpanel/3rdparty/wp-toolkit/bin/run-script background-tasks-executor.php
    I solved it running rpm -e wp-toolkit-cpanel as its explained at How do I uninstall WordPress Toolkit? But how is that possible on DNS Only? Check those upgrade processes. It should be automatically deleted on future iterations from DNS Only as it is consuming a bit of precious memory. Regards
    0
  • cPRex Jurassic Moderator
    Just to confirm, did this server start life as a DNSOnly box, or was a conversion made from a full cPanel system?
    0
  • Kent Brockman
    It was fully installed as a DNS Only box from scratch, on a new server on 2017.
    0
  • cPRex Jurassic Moderator
    Alrighty - let me do some testing on a modern install and I'll let you know what I find out!
    0
  • cPRex Jurassic Moderator
    Okay, I built a shiny new DNSOnly system on CentOS 7. I do have MySQL 5.7 installed. I don't have any WordPress Toolkit RPMs present. We do have a series of cases that removed functionality from DNSOnly that wasn't supposed to be there, so you're likely seeing leftovers of an older install that has been updated rather than what a new one looks like if you were to deploy today. Does that help at all? You can always use the WHM >> Service Manager to disable the services and see how that goes before you perform a full removal of the tool, just in case you do find it ends up being needed.
    0

Please sign in to leave a comment.