{"id":490,"date":"2010-09-24T19:23:10","date_gmt":"2010-09-25T00:23:10","guid":{"rendered":"http:\/\/swildow.darktech.org\/wp\/?p=490"},"modified":"2016-04-20T21:55:42","modified_gmt":"2016-04-21T02:55:42","slug":"table-mysql-proc-doesnt-exist","status":"publish","type":"post","link":"https:\/\/www.wildow.com\/blog\/?p=490","title":{"rendered":"Table &#8216;mysql.proc&#8217; doesn&#8217;t exist"},"content":{"rendered":"<p>Table &#8216;mysql.proc&#8217; doesn&#8217;t exist<\/p>\n<p>After I was asked to create a stored procedure on a MySQL 5.0.45 installation last week, I received the following error:<\/p>\n<p>ERROR 1146 at line 24: Table &#8216;mysql.proc&#8217; doesn&#8217;t exist<\/p>\n<p>The server had the default MySQL 4.1.20 that comes with Red Hat Enterprise Linux 4, and it was upgraded to MySQL 5.0.45. After the upgrade, the mysql_upgrade script wasn&#8217;t run, so the privilege tables were wrong, and the special tables for procedures and triggers did not exist.<\/p>\n<p>To fix the problem, I ran:<\/p>\n<p># \/usr\/bin\/mysql_upgrade<\/p>\n<p>After about 20 seconds, the script completed and I was able to add a stored procedure without a problem.<\/p>\n<p><a href=\"http:\/\/rackerhacker.com\/2007\/11\/29\/table-mysqlproc-doesnt-exist\/\" target=\"_blank\">http:\/\/rackerhacker.com\/2007\/11\/29\/table-mysqlproc-doesnt-exist\/ <\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Table &#8216;mysql.proc&#8217; doesn&#8217;t exist After I was asked to create a stored procedure on a MySQL 5.0.45 installation last week, I received the following error: ERROR 1146 at line 24: Table &#8216;mysql.proc&#8217; doesn&#8217;t exist The server had the default MySQL &#8230; <a class=\"more-link\" href=\"https:\/\/www.wildow.com\/blog\/?p=490\">Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[],"class_list":["post-490","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/490","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=490"}],"version-history":[{"count":2,"href":"https:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/490\/revisions"}],"predecessor-version":[{"id":1743,"href":"https:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/490\/revisions\/1743"}],"wp:attachment":[{"href":"https:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=490"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=490"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=490"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}