Skip to main content

Need to restart mysql database without root user access

Comments

3 comments

  • cPRex Jurassic Moderator
    Hey there! Unfortunately no - you have to be the root user to restart services on the machine. If you need to reset those login credentials, contacting your hosting provider would be the best step.
    0
  • techAMIGO
    Hello John, If your user has sudo privileges, you can manage (stop, start, restart) services. The term "sudo" must be used before each command. For example: If you want to restart mysql service, For MySQL service named mysql: sudo systemctl restart mysql For MySQL service named mysqld: sudo systemctl restart mysqld Note: The exact service name might vary based on your MySQL installation and Linux distribution. Remember to replace mysql or mysqld with the appropriate service name based on your server's configuration.
    0
  • cPRex Jurassic Moderator
    You would still need the root password to use "sudo" which I don't think they have.
    0

Please sign in to leave a comment.