Need to restart mysql database without root user access

John Kirch

Registered
Aug 24, 2023
1
0
1
Chattanooga, TN, United States
cPanel Access Level
Website Owner
I am a new developer to a company and out of the blue, it says that the MYSQL servers are offline for one of our ecommerce sites. They haven't had a developer here for 4 years so I wouldn't even know where to get the root access to this account. Is it possible to restart the MySQL service without root access or from the cPanel dashboard?
 

techAMIGO

Well-Known Member
Nov 6, 2019
68
48
18
Kerala, india
cPanel Access Level
Root Administrator
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.