{"id":2223,"date":"2025-07-09T08:08:00","date_gmt":"2025-07-09T08:08:00","guid":{"rendered":"https:\/\/hostrago.com\/knowledge-base\/?p=2223"},"modified":"2025-07-09T08:08:05","modified_gmt":"2025-07-09T08:08:05","slug":"restart-mysql-service-in-whm","status":"publish","type":"post","link":"https:\/\/hostrago.com\/knowledge-base\/restart-mysql-service-in-whm\/","title":{"rendered":"How to Start\/Stop\/Restart MySQL Service in WHM?"},"content":{"rendered":"\n<p>When your website is experiencing database connection errors, slow query performance, or MySQL crashes, the best first step is to <strong>Restart MySQL service<\/strong> from WHM. This operation allows you to reboot the MySQL (MariaDB) database engine running on your cPanel server \u2014 without rebooting the whole server.<\/p>\n\n\n\n<p>If you manage your hosting server with WHM (Web Host Manager), knowing how to <strong>restart MySQL service<\/strong> can help you resolve critical database issues, refresh stuck queries, and improve overall performance. At <strong>HostraGo<\/strong>, we recommend server admins and advanced users understand how to safely manage MySQL services via WHM.<\/p>\n\n\n\n<p>This tutorial covers how to <strong>start, stop, and restart MySQL<\/strong> from WHM \u2014 with step-by-step instructions and safety tips.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Why Restart MySQL Service?<\/h2>\n\n\n\n<p>Restarting MySQL is a common action when:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>You update database configurations (my.cnf)<\/li>\n\n\n\n<li>The database service hangs or fails to respond<\/li>\n\n\n\n<li>You apply major changes like user privileges or database repairs<\/li>\n\n\n\n<li>You\u2019re troubleshooting site errors like <em>Error Establishing a Database Connection<\/em><\/li>\n<\/ul>\n\n\n\n<p>Restarting MySQL helps clear memory, reset processes, and reinitialize settings without affecting other services on your server.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to Restart MySQL Service in WHM?<\/h2>\n\n\n\n<p>Follow the steps below to restart (or start\/stop) MySQL securely using WHM:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 1: Log in to WHM<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Open your browser and go to:<br><code>https:\/\/your-server-ip:2087<\/code><\/li>\n\n\n\n<li>Log in with <strong>root<\/strong> or <strong>reseller<\/strong> credentials.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">Step 2: Search for \u2018Restart Services\u2019<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>In the left-hand WHM search bar, type <strong>Restart Services<\/strong>.<\/li>\n\n\n\n<li>Click on the option titled <strong>Restart Services<\/strong>.<\/li>\n\n\n\n<li>You\u2019ll see a list of all controllable services (Apache, FTP, DNS, etc.)<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"503\" src=\"https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/07\/Search-for-\u2018Restart-Services-1024x503.webp\" loading=\"lazy\" alt=\"Search for \u2018Restart Services\u2019\" class=\"wp-image-2224\" srcset=\"https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/07\/Search-for-\u2018Restart-Services-1024x503.webp 1024w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/07\/Search-for-\u2018Restart-Services-300x147.webp 300w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/07\/Search-for-\u2018Restart-Services-768x378.webp 768w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/07\/Search-for-\u2018Restart-Services-1536x755.webp 1536w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/07\/Search-for-\u2018Restart-Services-2048x1007.webp 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Step 3: Confirm Restart<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Click the <strong>Yes<\/strong> button to restart the MySQL service.<\/li>\n\n\n\n<li>You will see real-time logs as the service restarts.<\/li>\n\n\n\n<li>After a few seconds, a success message will confirm the restart.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"269\" src=\"https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/07\/Confirm-Restart-1-1024x269.webp\" loading=\"lazy\" alt=\"Confirm Restart\" class=\"wp-image-2230\" srcset=\"https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/07\/Confirm-Restart-1-1024x269.webp 1024w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/07\/Confirm-Restart-1-300x79.webp 300w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/07\/Confirm-Restart-1-768x202.webp 768w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/07\/Confirm-Restart-1-1536x403.webp 1536w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/07\/Confirm-Restart-1.webp 1627w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">To <strong>Start<\/strong> or <strong>Stop<\/strong> MySQL:<\/h3>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"509\" src=\"https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/07\/To-Start-or-Stop-MySQL-1024x509.webp\" loading=\"lazy\" alt=\"To Start or Stop MySQL\" class=\"wp-image-2227\" srcset=\"https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/07\/To-Start-or-Stop-MySQL-1024x509.webp 1024w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/07\/To-Start-or-Stop-MySQL-300x149.webp 300w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/07\/To-Start-or-Stop-MySQL-768x382.webp 768w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/07\/To-Start-or-Stop-MySQL-1536x763.webp 1536w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/07\/To-Start-or-Stop-MySQL-2048x1017.webp 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>If MySQL is currently stopped or inactive, you can also:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Start<\/strong> MySQL using the same process above.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"111\" src=\"https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/07\/Start-MySQL-1024x111.webp\" loading=\"lazy\" alt=\"Start MySQL\" class=\"wp-image-2225\" srcset=\"https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/07\/Start-MySQL-1024x111.webp 1024w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/07\/Start-MySQL-300x32.webp 300w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/07\/Start-MySQL-768x83.webp 768w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/07\/Start-MySQL-1536x166.webp 1536w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/07\/Start-MySQL.webp 1611w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Stop<\/strong> MySQL (for advanced scenarios only \u2014 not recommended on live sites).<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"124\" src=\"https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/07\/Stop-MySQL-1024x124.webp\" loading=\"lazy\" alt=\"Stop MySQL\" class=\"wp-image-2226\" srcset=\"https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/07\/Stop-MySQL-1024x124.webp 1024w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/07\/Stop-MySQL-300x36.webp 300w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/07\/Stop-MySQL-768x93.webp 768w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/07\/Stop-MySQL-1536x186.webp 1536w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/07\/Stop-MySQL.webp 1605w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\u26a0\ufe0f <em>Caution:<\/em> Stopping <a href=\"https:\/\/www.mysql.com\/\" target=\"_blank\" rel=\"noopener\">MySQL <\/a>will cause all database-driven websites to go offline. Only stop it if absolutely necessary.<\/p>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\">Need Help?<\/h2>\n\n\n\n<p>If you&#8217;re unsure how to <strong>restart MySQL service<\/strong>, or your site is still showing database errors after a restart \u2014 reach out to our expert team.<\/p>\n\n\n\n<p>\ud83d\udcac <a href=\"https:\/\/hostrago.com\/contact-us\">Contact HostraGo Support<\/a> \u2014 we\u2019re available 24\/7 to assist you.<\/p>\n\n\n\n<p>Or choose a hosting plan with <strong>fully managed MySQL support<\/strong>:<br>\ud83d\udc49 <a href=\"https:\/\/hostrago.com\/vps\/self-managed-vps\/\">Explore HostraGo VPS &amp; Cloud Hosting Plans<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Final Thoughts<\/h2>\n\n\n\n<p>Knowing how to <strong>restart MySQL service<\/strong> in WHM gives you better control over your server and helps resolve common database issues with minimal disruption. It\u2019s a simple but powerful tool in your web hosting management toolkit.<\/p>\n\n\n\n<p>At <strong>HostraGo<\/strong>, we empower our users with full root access, premium tools, and proactive support so you never feel stuck \u2014 even during critical server tasks.<\/p>\n\n\n\n<p>\u2705 Make sure your hosting plan includes full MySQL control and support \u2014 <a href=\"https:\/\/hostrago.com\/\">Get<\/a><a> Started with HostraGo<\/a> today.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>When your website is experiencing database connection errors, slow query performance, or MySQL crashes, the best first step is to Restart MySQL service from WHM&#8230;.<\/p>\n","protected":false},"author":1,"featured_media":2228,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[389,177,126,506,504,502,503,505],"class_list":["post-2223","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-whm","tag-cpanel-server","tag-database-management","tag-hostrago","tag-mysql-troubleshooting","tag-mysql-whm","tag-restart-mysql-service","tag-whm-database-control","tag-whm-root-access"],"menu_order":0,"_links":{"self":[{"href":"https:\/\/hostrago.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/2223","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hostrago.com\/knowledge-base\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hostrago.com\/knowledge-base\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hostrago.com\/knowledge-base\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hostrago.com\/knowledge-base\/wp-json\/wp\/v2\/comments?post=2223"}],"version-history":[{"count":1,"href":"https:\/\/hostrago.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/2223\/revisions"}],"predecessor-version":[{"id":2231,"href":"https:\/\/hostrago.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/2223\/revisions\/2231"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hostrago.com\/knowledge-base\/wp-json\/wp\/v2\/media\/2228"}],"wp:attachment":[{"href":"https:\/\/hostrago.com\/knowledge-base\/wp-json\/wp\/v2\/media?parent=2223"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hostrago.com\/knowledge-base\/wp-json\/wp\/v2\/categories?post=2223"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hostrago.com\/knowledge-base\/wp-json\/wp\/v2\/tags?post=2223"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}