{"id":609,"date":"2020-12-23T06:14:01","date_gmt":"2020-12-23T06:14:01","guid":{"rendered":"https:\/\/www.velaninfo.com\/rs\/?post_type=techtips&#038;p=609"},"modified":"2021-02-23T00:26:42","modified_gmt":"2021-02-23T00:26:42","slug":"crashed-mysql8-0-and-wont-start-up-in-ubuntu-linux","status":"publish","type":"techtips","link":"https:\/\/www.velaninfo.com\/rs\/techtips\/crashed-mysql8-0-and-wont-start-up-in-ubuntu-linux\/","title":{"rendered":"How to Fix Crashed MySQL 8.0 and Won&#8217;t Start Up in Ubuntu Linux?"},"content":{"rendered":"<p>MySQL is an open source RDBMS that supports all platforms like Unix, Windows and Linux. MySQL is mostly associated with <a href=\"https:\/\/velaninfo.com\/mobility-services\"><strong>web apps and online publishing<\/strong><\/a>. MySQL can be used to a wide range of applications as the working model is a client-based server.<\/p>\n<p>There would be situations where the MySQL database server would crash and the following steps helps you to restore the MySQL database server \u2013<\/p>\n<p><strong>Step 1:<\/strong> Login to server as a root user<\/p>\n<p><strong>Step 2:<\/strong> Backup the current MySQL folder from \/var\/lib\/mysql to \/var\/lib\/backup.mysql<\/p>\n<p><em>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 # mv \/var\/lib\/mysql \/var\/lib\/backup.mysql<\/em><\/p>\n<p><strong>Step 3:<\/strong> Install MySQL 8.0<\/p>\n<p><em># wget -c https:\/\/repo.mysql.com\/\/mysql-apt-config_0.8.13-1_all.deb<\/em><\/p>\n<p><em>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 #sudodpkg -i mysql-apt-config_0.8.13-1_all.deb<\/em><\/p>\n<p><strong>Step 4:<\/strong> Installation of update package index on your server with apt<\/p>\n<p><em>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 # apt update<\/em><\/p>\n<p><strong>Step 5:<\/strong> The next step is to install default MySQL server packages<\/p>\n<p><em>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 # apt install mysql-server<\/em><\/p>\n<p><strong>Step 6<\/strong>: Shutdown MySQL server<\/p>\n<p>@systemctl stop mysqld<\/p>\n<p><strong>Step 7:<\/strong> Copy important database folders from \/var\/lib\/backup.mysql\/&lt;database name&gt;\u00a0 to \/var\/lib\/mysql\/&lt;database name&gt;<\/p>\n<p><strong>Step 8:<\/strong> Copy ibdata1 file from \/var\/lib\/backup.mysql to \/var\/lib\/mysql<\/p>\n<p><strong>Step 9:<\/strong> Ensure all files and folders are owned by MySQL<\/p>\n<p><em>drwxr-xr-x.\u00a0 4 mysqlmysql\u00a0\u00a0\u00a0\u00a0 4096 Oct 24\u00a0 2016mysql<\/em><\/p>\n<p><strong>Step 10:<\/strong> Restart the MySQL service<\/p>\n<p><em># systemctl start mysqld<\/em><\/p>\n<p>At <strong>Velan<\/strong>, our server support engineers can help you restore or reinstall MySQL server. We troubleshoot problems like these for our clients every day. If you are interested in our service, please fill the <a href=\"https:\/\/velaninfo.com\/contact\"><strong>Quick connect form<\/strong><\/a> to get in touch with us.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>MySQL is an open source RDBMS that supports all platforms like Unix, Windows and Linux. MySQL is mostly associated with web apps and online publishing. MySQL can be used to a wide range of applications as the working model is a client-based server. There would be situations where the MySQL database server would crash and&#8230;<a class=\"continue-reading text-uppercase\" href=\"https:\/\/www.velaninfo.com\/rs\/techtips\/crashed-mysql8-0-and-wont-start-up-in-ubuntu-linux\/\"> 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":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"tags":[],"class_list":["post-609","techtips","type-techtips","status-publish","hentry","Categories_tech_tip-database","Categories_tech_tip-linux","Categories_tech_tip-mysql","Categories_tech_tip-server"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v19.5 (Yoast SEO v27.3) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to fix crashed MySQL 8.0 and won&#039;t start up in Ubuntu Linux | 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\/crashed-mysql8-0-and-wont-start-up-in-ubuntu-linux\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Fix Crashed MySQL 8.0 and Won&#039;t Start Up in Ubuntu Linux?\" \/>\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\/crashed-mysql8-0-and-wont-start-up-in-ubuntu-linux\/\" \/>\n<meta property=\"og:site_name\" content=\"Velan\" \/>\n<meta property=\"article:modified_time\" content=\"2021-02-23T00:26:42+00:00\" \/>\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\\\/crashed-mysql8-0-and-wont-start-up-in-ubuntu-linux\\\/\",\"url\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/techtips\\\/crashed-mysql8-0-and-wont-start-up-in-ubuntu-linux\\\/\",\"name\":\"How to fix crashed MySQL 8.0 and won't start up in Ubuntu Linux | Velan\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/#website\"},\"datePublished\":\"2020-12-23T06:14:01+00:00\",\"dateModified\":\"2021-02-23T00:26:42+00:00\",\"description\":\"Steps to fix crashed MySQL database server\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/techtips\\\/crashed-mysql8-0-and-wont-start-up-in-ubuntu-linux\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/techtips\\\/crashed-mysql8-0-and-wont-start-up-in-ubuntu-linux\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/techtips\\\/crashed-mysql8-0-and-wont-start-up-in-ubuntu-linux\\\/#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 Fix Crashed MySQL 8.0 and Won&#8217;t Start Up in Ubuntu Linux?\"}]},{\"@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 fix crashed MySQL 8.0 and won't start up in Ubuntu Linux | 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\/crashed-mysql8-0-and-wont-start-up-in-ubuntu-linux\/","og_locale":"en_US","og_type":"article","og_title":"How to Fix Crashed MySQL 8.0 and Won't Start Up in Ubuntu Linux?","og_description":"Steps to fix crashed MySQL database server","og_url":"https:\/\/www.velaninfo.com\/rs\/techtips\/crashed-mysql8-0-and-wont-start-up-in-ubuntu-linux\/","og_site_name":"Velan","article_modified_time":"2021-02-23T00:26:42+00:00","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\/crashed-mysql8-0-and-wont-start-up-in-ubuntu-linux\/","url":"https:\/\/www.velaninfo.com\/rs\/techtips\/crashed-mysql8-0-and-wont-start-up-in-ubuntu-linux\/","name":"How to fix crashed MySQL 8.0 and won't start up in Ubuntu Linux | Velan","isPartOf":{"@id":"https:\/\/www.velaninfo.com\/rs\/#website"},"datePublished":"2020-12-23T06:14:01+00:00","dateModified":"2021-02-23T00:26:42+00:00","description":"Steps to fix crashed MySQL database server","breadcrumb":{"@id":"https:\/\/www.velaninfo.com\/rs\/techtips\/crashed-mysql8-0-and-wont-start-up-in-ubuntu-linux\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.velaninfo.com\/rs\/techtips\/crashed-mysql8-0-and-wont-start-up-in-ubuntu-linux\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.velaninfo.com\/rs\/techtips\/crashed-mysql8-0-and-wont-start-up-in-ubuntu-linux\/#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 Fix Crashed MySQL 8.0 and Won&#8217;t Start Up in Ubuntu Linux?"}]},{"@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\/609","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\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/comments?post=609"}],"version-history":[{"count":2,"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/techtips\/609\/revisions"}],"predecessor-version":[{"id":658,"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/techtips\/609\/revisions\/658"}],"wp:attachment":[{"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/media?parent=609"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/tags?post=609"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}