{"id":342,"date":"2021-10-02T16:06:12","date_gmt":"2021-10-02T22:06:12","guid":{"rendered":"https:\/\/www.businesstechnologyassociates.com\/blog\/?p=342"},"modified":"2021-10-02T16:06:12","modified_gmt":"2021-10-02T22:06:12","slug":"mysql-mariadb-needs-upgrading-after-upgrading","status":"publish","type":"post","link":"https:\/\/www.businesstechnologyassociates.com\/blog\/2021\/10\/mysql-mariadb-needs-upgrading-after-upgrading\/","title":{"rendered":"MySQL\/MariaDB needs upgrading after upgrading"},"content":{"rendered":"<p>Recently I was reviewing log files for one of my servers and came across the following error message:<\/p>\n<pre>mysqldump: Couldn't execute 'SHOW FUNCTION STATUS WHERE Db = 'mysql'': Cannot load from mysql.proc. The table is probably corrupted (1728)\r\nmysqldump: Couldn't execute 'SHOW FUNCTION STATUS WHERE Db = 'mydatabase'': Cannot load from mysql.proc. The table is probably corrupted (1728)<\/pre>\n<p>Worried that I was having some kind of corruption in all my databases, I immediately search the web for those error messages.\u00a0 What I found was after I had upgraded my server&#8217;s software I needed to run a MySQL\/MariaDB specific upgrade command to upgrade the file organization for the new version.<\/p>\n<p>Why the software cannot recognize the older format and suggest the following I do not know.\u00a0 But here is what you need to do after upgrading the system&#8217;s software:<\/p>\n<pre>sudo mysql_upgrade -u root -p<\/pre>\n<p>The user specified does not need to be <strong>root<\/strong>, but it does need full access to all the databases on your system. The <strong>sudo<\/strong> is need to avoid the following error.<\/p>\n<pre>Could not create the upgrade info file '\/var\/lib\/mysql\/mysql_upgrade_info' in the MariaDB Servers datadir, errno: 13<\/pre>\n<p>This error showed up on a Debian 11 (bullseye) system. On my Ubuntu systems I have not seen this error, so the package management upgrade may handle the package specific upgrade.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recently I was reviewing log files for one of my servers and came across the following error message: mysqldump: Couldn&#8217;t execute &#8216;SHOW FUNCTION STATUS WHERE Db = &#8216;mysql&#8221;: Cannot load from mysql.proc. The table is probably corrupted (1728) mysqldump: Couldn&#8217;t execute &#8216;SHOW FUNCTION STATUS WHERE Db = &#8216;mydatabase&#8221;: Cannot load from mysql.proc. The table is &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.businesstechnologyassociates.com\/blog\/2021\/10\/mysql-mariadb-needs-upgrading-after-upgrading\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;MySQL\/MariaDB needs upgrading after upgrading&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,14],"tags":[],"class_list":["post-342","post","type-post","status-publish","format-standard","hentry","category-linux","category-mysql"],"_links":{"self":[{"href":"https:\/\/www.businesstechnologyassociates.com\/blog\/wp-json\/wp\/v2\/posts\/342","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.businesstechnologyassociates.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.businesstechnologyassociates.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.businesstechnologyassociates.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.businesstechnologyassociates.com\/blog\/wp-json\/wp\/v2\/comments?post=342"}],"version-history":[{"count":1,"href":"https:\/\/www.businesstechnologyassociates.com\/blog\/wp-json\/wp\/v2\/posts\/342\/revisions"}],"predecessor-version":[{"id":343,"href":"https:\/\/www.businesstechnologyassociates.com\/blog\/wp-json\/wp\/v2\/posts\/342\/revisions\/343"}],"wp:attachment":[{"href":"https:\/\/www.businesstechnologyassociates.com\/blog\/wp-json\/wp\/v2\/media?parent=342"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.businesstechnologyassociates.com\/blog\/wp-json\/wp\/v2\/categories?post=342"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.businesstechnologyassociates.com\/blog\/wp-json\/wp\/v2\/tags?post=342"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}