{"id":5852,"date":"2019-12-28T23:54:00","date_gmt":"2019-12-29T04:54:00","guid":{"rendered":"https:\/\/www.rushworth.us\/lisa\/?p=5852"},"modified":"2019-12-28T23:54:00","modified_gmt":"2019-12-29T04:54:00","slug":"mariadb-strangeness","status":"publish","type":"post","link":"https:\/\/www.rushworth.us\/lisa\/?p=5852","title":{"rendered":"MariaDB Strangeness"},"content":{"rendered":"<p>I had to remove and reinstall MariaDB to upgrade from Fedora 29. I assumed Fedora 31 would have a more recent version, so I just installed the database and attempted to start it. Nope.<\/p>\n<p>In journalctl<\/p>\n<p>Dec 28 23:37:49 fedora123 mysql-prepare-db-dir[3977]: Database MariaDB is probably initialized in \/var\/lib\/mysql already, nothing is done.<br \/>\nDec 28 23:37:49 fedora123 mysql-prepare-db-dir[3977]: If this is not the case, make sure the \/var\/lib\/mysql is empty before running mysql-prepare-db-dir.<br \/>\nDec 28 23:37:49 fedora123 mysqld[4013]: 2019-12-28 23:37:49 0 [Note] \/usr\/libexec\/mysqld (mysqld 10.3.20-MariaDB) starting as process 4013 &#8230;<br \/>\nDec 28 23:37:49 fedora123 systemd[1]: mariadb.service: Main process exited, code=exited, status=1\/FAILURE<\/p>\n<p>In mariadb.log<\/p>\n<p>2019-12-28 23:23:53 0 [ERROR] Fatal error: Can&#8217;t open and lock privilege tables: &#8216;mysql.user&#8217; is not of type &#8216;TABLE&#8217;<\/p>\n<p>Turns out the Fedora repo has 10.3, but the MariaDB repo that I&#8217;d used with Fedora 29 had MariaDB 10.4. After enabling the MariaDB repo and installing 10.4, the service without error.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I had to remove and reinstall MariaDB to upgrade from Fedora 29. I assumed Fedora 31 would have a more recent version, so I just installed the database and attempted to start it. Nope. In journalctl Dec 28 23:37:49 fedora123 mysql-prepare-db-dir[3977]: Database MariaDB is probably initialized in \/var\/lib\/mysql already, nothing is done. Dec 28 23:37:49 &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[30],"tags":[804],"class_list":["post-5852","post","type-post","status-publish","format-standard","hentry","category-system-administration","tag-mariadb"],"_links":{"self":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/5852","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5852"}],"version-history":[{"count":1,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/5852\/revisions"}],"predecessor-version":[{"id":5853,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/5852\/revisions\/5853"}],"wp:attachment":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5852"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5852"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5852"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}