{"id":389,"date":"2008-11-05T08:58:36","date_gmt":"2008-11-05T07:58:36","guid":{"rendered":"http:\/\/www.dotmana.com\/index.php\/?p=389"},"modified":"2008-11-05T08:58:36","modified_gmt":"2008-11-05T07:58:36","slug":"move-mysql-datadir-errno-13","status":"publish","type":"post","link":"https:\/\/www.dotmana.com\/weblog\/2008\/11\/move-mysql-datadir-errno-13\/","title":{"rendered":"Move mysql datadir : errno 13"},"content":{"rendered":"<p>If you are using Mysql with Ubuntu, be careful with apparmor when you move your mysql datadir.<\/p>\n<blockquote><p>If you&#8217;re symlinking to databases outside \/var\/lib\/mysql and you&#8217;re getting unexpected &#8220;(errno: 13)&#8221; (permission denied) errors, check your MySQL settings for AppArmor (particularly on Ubuntu as of 8.04) or SELinux. Specifically, make sure your new path is listed in \/etc\/apparmor.d\/usr.sbin.mysqld then restart apparmor.<\/p><\/blockquote>\n<p><a target=\"_blank\" href=\"http:\/\/dev.mysql.com\/doc\/refman\/5.0\/en\/symbolic-links-to-databases.html\">source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you are using Mysql with Ubuntu, be careful with apparmor when you move your mysql datadir. If you&#8217;re symlinking to databases outside \/var\/lib\/mysql and you&#8217;re getting unexpected &#8220;(errno: 13)&#8221; (permission denied) errors, check your MySQL settings for AppArmor (particularly &hellip; <a href=\"https:\/\/www.dotmana.com\/weblog\/2008\/11\/move-mysql-datadir-errno-13\/\">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":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-389","post","type-post","status-publish","format-standard","hentry","category-ubuntu"],"_links":{"self":[{"href":"https:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/posts\/389","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/comments?post=389"}],"version-history":[{"count":0,"href":"https:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/posts\/389\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/media?parent=389"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/categories?post=389"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/tags?post=389"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}