{"id":2717,"date":"2020-12-17T13:33:39","date_gmt":"2020-12-17T13:33:39","guid":{"rendered":"https:\/\/linuxways.net\/?p=2717"},"modified":"2020-12-17T13:39:28","modified_gmt":"2020-12-17T13:39:28","slug":"troubleshoot-error-job-for-mariadb-service-failed-because-the-control-process-exited-with-error-code","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/centos\/troubleshoot-error-job-for-mariadb-service-failed-because-the-control-process-exited-with-error-code\/","title":{"rendered":"Troubleshoot Error: Job for mariadb.service failed because the control process exited with error code."},"content":{"rendered":"<p><strong>See &#8220;systemctl status mariadb.service&#8221; and &#8220;journalctl -xe&#8221; for details.<\/strong><\/p>\n\n\n<p>While you start the installation of MariaDB on your CentOS 8 system,&nbsp; you can fail to start the MariaDB services on your system. In this situation, you need some assistance to resolve a particular problem.&nbsp;<\/p>\n<p>In this article, we will resolve an error that can appear during the installation of Mariadb on your CentOS system.&nbsp;<\/p>\n<p>Try to start the MariaDB services on your system by running the below-given command:<\/p>\n<pre>$ sudo systemctl start mariadb.service<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1105\" height=\"117\" class=\"wp-image-2718\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-334.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-334.png 1105w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-334-300x32.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-334-1024x108.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-334-768x81.png 768w\" sizes=\"auto, (max-width: 1105px) 100vw, 1105px\" \/><\/p>\n<pre>$ sudo systemctl status mariadb.service<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1106\" height=\"744\" class=\"wp-image-2719\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-335.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-335.png 1106w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-335-300x202.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-335-1024x689.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-335-768x517.png 768w\" sizes=\"auto, (max-width: 1106px) 100vw, 1106px\" \/><\/p>\n<p>To resolve the above-mentioned problem, you need to implement some set of commands on the terminal. Navigate into the data directories and list all files by using the following commands:<\/p>\n<pre>$ cd \/var\/lib\/mysql<\/pre>\n<pre>$ ls<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1101\" height=\"340\" class=\"wp-image-2720\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-336.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-336.png 1101w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-336-300x93.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-336-1024x316.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-336-768x237.png 768w\" sizes=\"auto, (max-width: 1101px) 100vw, 1101px\" \/><\/p>\n<p>Remove all data from the directories.<\/p>\n<pre>$ rm -r *<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1102\" height=\"57\" class=\"wp-image-2721\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-337.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-337.png 1102w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-337-300x16.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-337-1024x53.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-337-768x40.png 768w\" sizes=\"auto, (max-width: 1102px) 100vw, 1102px\" \/><\/p>\n<p>Again initialize the database directory by running the following command:<\/p>\n<pre>$ mysql_install_db --user=mysql --basedir=\/usr --datadir=\/var\/lib\/mysql<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1106\" height=\"142\" class=\"wp-image-2722\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-338.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-338.png 1106w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-338-300x39.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-338-1024x131.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-338-768x99.png 768w\" sizes=\"auto, (max-width: 1106px) 100vw, 1106px\" \/><\/p>\n<p>&nbsp;Start the mysqld by executing the following commands:<\/p>\n<pre>$ sudo systemctl start mysqld<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"920\" height=\"33\" class=\"wp-image-2723\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-339.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-339.png 920w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-339-300x11.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-339-768x28.png 768w\" sizes=\"auto, (max-width: 920px) 100vw, 920px\" \/><\/p>\n<p>Now, again start the MariaDB and msql service.<\/p>\n<pre>$ sudo systemctl start mysql.service<\/pre>\n<pre>$ sudo systemctl start mariadb.service<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"851\" height=\"55\" class=\"wp-image-2724\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-340.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-340.png 851w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-340-300x19.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-340-768x50.png 768w\" sizes=\"auto, (max-width: 851px) 100vw, 851px\" \/><\/p>\n<p>You need to authenticate the user login password. Enter the password as follows:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"760\" height=\"554\" class=\"wp-image-2725\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-341.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-341.png 760w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-341-300x219.png 300w\" sizes=\"auto, (max-width: 760px) 100vw, 760px\" \/><\/p>\n<p>To get the service status run the below-given command:<\/p>\n<pre>$ sudo systemctl status mariadb.service<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1106\" height=\"746\" class=\"wp-image-2726\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-342.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-342.png 1106w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-342-300x202.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-342-1024x691.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-342-768x518.png 768w\" sizes=\"auto, (max-width: 1106px) 100vw, 1106px\" \/><\/p>\n<p>From the above-mentioned information, we have seen how to resolve the above maiadb problem that may arise during the installation of MariaDB on CentOS 8. I hope now you can easily handle this problem on your system.<\/p>\n<p>\u2019<\/p>","protected":false},"excerpt":{"rendered":"<p>See &#8220;systemctl status mariadb.service&#8221; and &#8220;journalctl -xe&#8221; for details. While you start the installation of MariaDB on your CentOS 8 system,&nbsp; you can fail to start the MariaDB&hellip;<\/p>","protected":false},"author":2,"featured_media":2731,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[118,114],"class_list":["post-2717","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-centos","tag-error","tag-mariadb-2"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/2717","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=2717"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/2717\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/2731"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=2717"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=2717"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=2717"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}