{"id":933,"date":"2021-02-24T06:54:12","date_gmt":"2021-02-24T06:54:12","guid":{"rendered":"https:\/\/www.velaninfo.com\/rs\/?post_type=techtips&#038;p=933"},"modified":"2021-02-24T06:54:12","modified_gmt":"2021-02-24T06:54:12","slug":"how-to-resolve-mysql-is-not-running-in-cpanel","status":"publish","type":"techtips","link":"https:\/\/www.velaninfo.com\/rs\/techtips\/how-to-resolve-mysql-is-not-running-in-cpanel\/","title":{"rendered":"How to Resolve MySQL is not Running in cPanel?"},"content":{"rendered":"<p>MySQL stopped running due to improper shutdown or abrupt close of the query. To start the MySQL service, please use the following reasons and solutions.<\/p>\n<ol>\n<li><strong>MySQL not start due to existing lock file<\/strong><\/li>\n<\/ol>\n<p><strong><em># servicemysql status<\/em><\/strong><\/p>\n<p>MySQL is not running, but lock file (\/var\/lock\/subsys\/mysql[FAILED]<\/p>\n<p>Above command will shows that the MYSQL is not running. We have ran following command to remove the lock file.<\/p>\n<p><strong><em># rm \/var\/lock\/subsys\/mysql<\/em><\/strong><\/p>\n<p>Then, we restarted the MySQL service using the following command:<\/p>\n<p><strong><em># servicemysqld restart<\/em><\/strong><\/p>\n<p>This fixed the error.<\/p>\n<ol start=\"2\">\n<li><strong>MySQL stops running if tables crashed<\/strong><\/li>\n<\/ol>\n<p>The other reason for this error to occur is due to the database tables crashing. Normally, the following message displays in the MySQL error logs.<\/p>\n<p>MyISAM-table &#8216;\/var\/lib\/mysql\/dbname\/table_name.MYI&#8217; is marked as crashed and should be repaired<\/p>\n<p>We can fix this problem by repairing the database and the database tables using the below commands:<\/p>\n<p><strong><em># myisamchk&lt;database&gt;&lt;server&gt;<\/em><\/strong><\/p>\n<p><strong><em># mysqlcheck -r &lt;database&gt;&lt;postname&gt;<\/em><\/strong><\/p>\n<p>Restart the MySQL service using the command.<\/p>\n<p><strong><em># servicemysqld restart<\/em><\/strong><\/p>\n<p>Now MySQL will started.<\/p>\n<p>At Velan, our server support engineers can help you resolve MySQL not working issues on cPanel. We troubleshoot problems like these for our clients every day. If you are interested in our service, please fill the <a href=\"https:\/\/www.velaninfo.com\/contact\"><strong>Quick connect<\/strong><\/a> form to get in touch with us<\/p>\n","protected":false},"excerpt":{"rendered":"<p>MySQL stopped running due to improper shutdown or abrupt close of the query. To start the MySQL service, please use the following reasons and solutions. MySQL not start due to existing lock file # servicemysql status MySQL is not running, but lock file (\/var\/lock\/subsys\/mysql[FAILED] Above command will shows that the MYSQL is not running. We&#8230;<a class=\"continue-reading text-uppercase\" href=\"https:\/\/www.velaninfo.com\/rs\/techtips\/how-to-resolve-mysql-is-not-running-in-cpanel\/\"> Continue Reading <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.velaninfo.com\/rs\/wp-content\/themes\/velaninfo\/images\/reading_arw.png\" alt=\"Continue Reading\" width=\"16\" height=\"12\"\/><\/a><\/p>\n","protected":false},"author":9,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"tags":[],"class_list":["post-933","techtips","type-techtips","status-publish","hentry","Categories_tech_tip-cpanel-whm","Categories_tech_tip-linux","Categories_tech_tip-server"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v19.5 (Yoast SEO v27.5) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Resolve MySQL is not running in cPanel | Velan<\/title>\n<meta name=\"description\" content=\"Steps to fix crashed MySQL database server\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.velaninfo.com\/rs\/techtips\/how-to-resolve-mysql-is-not-running-in-cpanel\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Resolve MySQL is not Running in cPanel?\" \/>\n<meta property=\"og:description\" content=\"Steps to fix crashed MySQL database server\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.velaninfo.com\/rs\/techtips\/how-to-resolve-mysql-is-not-running-in-cpanel\/\" \/>\n<meta property=\"og:site_name\" content=\"Velan\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/techtips\\\/how-to-resolve-mysql-is-not-running-in-cpanel\\\/\",\"url\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/techtips\\\/how-to-resolve-mysql-is-not-running-in-cpanel\\\/\",\"name\":\"How to Resolve MySQL is not running in cPanel | Velan\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/#website\"},\"datePublished\":\"2021-02-24T06:54:12+00:00\",\"description\":\"Steps to fix crashed MySQL database server\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/techtips\\\/how-to-resolve-mysql-is-not-running-in-cpanel\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/techtips\\\/how-to-resolve-mysql-is-not-running-in-cpanel\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/techtips\\\/how-to-resolve-mysql-is-not-running-in-cpanel\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tech Tips\",\"item\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/techtips\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to Resolve MySQL is not Running in cPanel?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/#website\",\"url\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/\",\"name\":\"Velan\",\"description\":\"Velaninfo Services India Pvt Ltd\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Resolve MySQL is not running in cPanel | Velan","description":"Steps to fix crashed MySQL database server","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.velaninfo.com\/rs\/techtips\/how-to-resolve-mysql-is-not-running-in-cpanel\/","og_locale":"en_US","og_type":"article","og_title":"How to Resolve MySQL is not Running in cPanel?","og_description":"Steps to fix crashed MySQL database server","og_url":"https:\/\/www.velaninfo.com\/rs\/techtips\/how-to-resolve-mysql-is-not-running-in-cpanel\/","og_site_name":"Velan","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.velaninfo.com\/rs\/techtips\/how-to-resolve-mysql-is-not-running-in-cpanel\/","url":"https:\/\/www.velaninfo.com\/rs\/techtips\/how-to-resolve-mysql-is-not-running-in-cpanel\/","name":"How to Resolve MySQL is not running in cPanel | Velan","isPartOf":{"@id":"https:\/\/www.velaninfo.com\/rs\/#website"},"datePublished":"2021-02-24T06:54:12+00:00","description":"Steps to fix crashed MySQL database server","breadcrumb":{"@id":"https:\/\/www.velaninfo.com\/rs\/techtips\/how-to-resolve-mysql-is-not-running-in-cpanel\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.velaninfo.com\/rs\/techtips\/how-to-resolve-mysql-is-not-running-in-cpanel\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.velaninfo.com\/rs\/techtips\/how-to-resolve-mysql-is-not-running-in-cpanel\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.velaninfo.com\/rs\/"},{"@type":"ListItem","position":2,"name":"Tech Tips","item":"https:\/\/www.velaninfo.com\/rs\/techtips\/"},{"@type":"ListItem","position":3,"name":"How to Resolve MySQL is not Running in cPanel?"}]},{"@type":"WebSite","@id":"https:\/\/www.velaninfo.com\/rs\/#website","url":"https:\/\/www.velaninfo.com\/rs\/","name":"Velan","description":"Velaninfo Services India Pvt Ltd","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.velaninfo.com\/rs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/techtips\/933","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/techtips"}],"about":[{"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/types\/techtips"}],"author":[{"embeddable":true,"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/comments?post=933"}],"version-history":[{"count":1,"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/techtips\/933\/revisions"}],"predecessor-version":[{"id":934,"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/techtips\/933\/revisions\/934"}],"wp:attachment":[{"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/media?parent=933"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/tags?post=933"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}