{"id":80,"date":"2009-04-07T10:52:59","date_gmt":"2009-04-07T16:52:59","guid":{"rendered":"http:\/\/thenoyes.com\/littlenoise\/?p=80"},"modified":"2009-04-09T07:03:09","modified_gmt":"2009-04-09T13:03:09","slug":"error-1307-creating-stored-procedure","status":"publish","type":"post","link":"https:\/\/thenoyes.com\/littlenoise\/?p=80","title":{"rendered":"Error 1307 creating stored procedure"},"content":{"rendered":"<p>Trying to create a stored procedure, and getting a cryptic error like this?<\/p>\n<pre>ERROR 1307 (HY000): Failed to CREATE PROCEDURE &lt;procName&gt;<\/pre>\n<p>Try this simple diagnostic query first:<\/p>\n<pre>SELECT \r\n  IF(\r\n    COUNT(*) XOR (CAST(VERSION() AS decimal(2, 1)) >= 5.1), \r\n    'Wrong mysql.proc table version. Did you forget to run mysql_upgrade?',\r\n    'The mysql.proc table looks ok. Keep hunting.'\r\n  ) AS troubleshooting \r\nFROM \r\n  information_schema.columns \r\nWHERE \r\n  table_schema = 'mysql' \r\n  AND table_name = 'proc' \r\n  AND column_name LIKE 'body_utf8';<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Trying to create a stored procedure, and getting a cryptic error like this? ERROR 1307 (HY000): Failed to CREATE PROCEDURE &lt;procName&gt; Try this simple diagnostic query first: SELECT IF( COUNT(*) XOR (CAST(VERSION() AS decimal(2, 1)) >= 5.1), &#8216;Wrong mysql.proc table version. Did you forget to run mysql_upgrade?&#8217;, &#8216;The mysql.proc table looks ok. Keep hunting.&#8217; ) [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[8],"tags":[],"class_list":["post-80","post","type-post","status-publish","format-standard","hentry","category-mysql-faq"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p2IBF1-1i","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/thenoyes.com\/littlenoise\/index.php?rest_route=\/wp\/v2\/posts\/80","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thenoyes.com\/littlenoise\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thenoyes.com\/littlenoise\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thenoyes.com\/littlenoise\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/thenoyes.com\/littlenoise\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=80"}],"version-history":[{"count":0,"href":"https:\/\/thenoyes.com\/littlenoise\/index.php?rest_route=\/wp\/v2\/posts\/80\/revisions"}],"wp:attachment":[{"href":"https:\/\/thenoyes.com\/littlenoise\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=80"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thenoyes.com\/littlenoise\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=80"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thenoyes.com\/littlenoise\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=80"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}