{"id":141,"date":"2012-11-07T17:24:18","date_gmt":"2012-11-07T14:24:18","guid":{"rendered":"http:\/\/meekconsulting.com\/?p=141"},"modified":"2012-11-07T17:24:41","modified_gmt":"2012-11-07T14:24:41","slug":"security-invoker-for-mysql-views","status":"publish","type":"post","link":"https:\/\/meekconsulting.com\/?p=141","title":{"rendered":"Security Invoker for MYSQL views"},"content":{"rendered":"<p>When moving mysql databases between machines. It is best if all stored procedures, functions, and views need to have the following line after their create statement:<\/p>\n<p>DEFINER=CURRENT_USER SQL SECURITY INVOKER<\/p>\n<p>Example:<\/p>\n<blockquote><p>\nCREATE OR REPLACE<br \/>\nDEFINER=CURRENT_USER SQL SECURITY INVOKER<br \/>\nVIEW<br \/>\nMYVIEW ( A, B, C) as select a,b,c from table<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>When moving mysql databases between machines. It is best if all stored procedures, functions, and views need to have the following line after their create statement: DEFINER=CURRENT_USER SQL SECURITY INVOKER Example: CREATE OR REPLACE DEFINER=CURRENT_USER SQL SECURITY INVOKER VIEW MYVIEW &hellip; <a href=\"https:\/\/meekconsulting.com\/?p=141\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/meekconsulting.com\/index.php?rest_route=\/wp\/v2\/posts\/141"}],"collection":[{"href":"https:\/\/meekconsulting.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/meekconsulting.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/meekconsulting.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/meekconsulting.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=141"}],"version-history":[{"count":4,"href":"https:\/\/meekconsulting.com\/index.php?rest_route=\/wp\/v2\/posts\/141\/revisions"}],"predecessor-version":[{"id":146,"href":"https:\/\/meekconsulting.com\/index.php?rest_route=\/wp\/v2\/posts\/141\/revisions\/146"}],"wp:attachment":[{"href":"https:\/\/meekconsulting.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=141"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/meekconsulting.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=141"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/meekconsulting.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=141"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}