{"id":3378,"date":"2012-07-12T13:28:14","date_gmt":"2012-07-12T17:28:14","guid":{"rendered":"http:\/\/spinor.info\/weblog\/?p=3378"},"modified":"2012-07-12T13:28:14","modified_gmt":"2012-07-12T17:28:14","slug":"wordpress-problem-solved","status":"publish","type":"post","link":"https:\/\/spinor.info\/weblog\/?p=3378","title":{"rendered":"WordPress problem solved&#8230;"},"content":{"rendered":"<p>A while back, I ran into <a href=\"http:\/\/spinor.info\/weblog\/?p=2347\">a problem with WordPress<\/a>, the blogging software that I use. I was unable remove posts from categories. In particular, blog posts that were not explicitly added to any category were automatically added to the &#8220;Uncategorized&#8221; category; it was impossible to remove them afterwards even as I added categories to the post. Unchecking a category made no difference.<\/p>\n<p>Now I know why. For some reason, the WordPress account on my MySQL server lost table lock and (more importantly) delete privileges.<\/p>\n<pre>USE mysql;\r\nUPDATE db SET Delete_priv='Y' WHERE User='wordpress' AND Delete_priv='N';\r\nUPDATE db SET Lock_tables_priv='Y' WHERE User='wordpress' AND Lock_tables_priv='N';\r\nFLUSH PRIVILEGES;<\/pre>\n<p>I really like it when I am able to resolve a long-standing problem with such little hassle. I just hope that this privileges issue did not corrupt the database in other ways, causing grief later on.<\/p>\n<fb:like href='https:\/\/spinor.info\/weblog\/?p=3378' send='true' layout='standard' show_faces='true' width='450' height='65' action='like' colorscheme='light' font='lucida grande'><\/fb:like>","protected":false},"excerpt":{"rendered":"<p>A while back, I ran into a problem with WordPress, the blogging software that I use. I was unable remove posts from categories. In particular, blog posts that were not explicitly added to any category were automatically added to the &#8220;Uncategorized&#8221; category; it was impossible to remove them afterwards even as I added categories to <a href='https:\/\/spinor.info\/weblog\/?p=3378' class='excerpt-more'>[&#8230;]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,6],"tags":[],"class_list":["post-3378","post","type-post","status-publish","format-standard","hentry","category-computers","category-internet","category-11-id","category-6-id","post-seq-1","post-parity-odd","meta-position-corners","fix"],"_links":{"self":[{"href":"https:\/\/spinor.info\/weblog\/index.php?rest_route=\/wp\/v2\/posts\/3378","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/spinor.info\/weblog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/spinor.info\/weblog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/spinor.info\/weblog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/spinor.info\/weblog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3378"}],"version-history":[{"count":6,"href":"https:\/\/spinor.info\/weblog\/index.php?rest_route=\/wp\/v2\/posts\/3378\/revisions"}],"predecessor-version":[{"id":3384,"href":"https:\/\/spinor.info\/weblog\/index.php?rest_route=\/wp\/v2\/posts\/3378\/revisions\/3384"}],"wp:attachment":[{"href":"https:\/\/spinor.info\/weblog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3378"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/spinor.info\/weblog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3378"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/spinor.info\/weblog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3378"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}