{"id":870,"date":"2016-06-16T02:55:05","date_gmt":"2016-06-15T18:55:05","guid":{"rendered":"http:\/\/cn.hostease.com\/xueyuan\/?p=870"},"modified":"2016-06-16T02:55:05","modified_gmt":"2016-06-15T18:55:05","slug":"cant-open-and-lock-privilege-tables-mysqlproxies_priv-frm","status":"publish","type":"post","link":"https:\/\/cn.hostease.com\/xueyuan\/hefaq\/cant-open-and-lock-privilege-tables-mysqlproxies_priv-frm\/","title":{"rendered":"Can&#8217;t open and lock privilege tables:  &#8216;.\/mysql\/proxies_priv.frm&#8217;"},"content":{"rendered":"<p>\u524d\u63d0:<\/p>\n<p>cpanel\u6388\u6743\u7528\u6237,mysql\u7248\u672c\u75315.6\u964d\u7ea7\u4e3a5.5\u7248\u672c\u540e,\u53d1\u73b0mysql\u65e0\u6cd5\u542f\u52a8.<\/p>\n<p>\u67e5\u770b\u65e5\u5fd7:<\/p>\n<p>[ERROR] \/usr\/local\/mysql-5.5.34\/bin\/mysqld: Incorrect information in file: &#8216;.\/mysql\/proxies_priv.frm&#8217;<\/p>\n<p>[ERROR] Fatal error: Can&#8217;t open and lock privilege tables: Incorrect information in file: &#8216;.\/mysql\/proxies_priv.frm&#8217;<\/p>\n<p>&nbsp;<\/p>\n<p>\u68c0\u67e5\u6743\u9650:<\/p>\n<p>\u53d1\u73b0\/var\/lib\/mysql\/mysql \u4e2d, proxies_priv.frm \u7528\u6237\u53ca\u7528\u6237\u7ec4\u5168\u662froot.\u4fee\u6539\u5f52\u5c5e\u5173\u7cfb\u4e3amysql.<\/p>\n<p>\u5982\u4e0b:<\/p>\n<p>cd \/var\/lib<\/p>\n<p>chown -R mysql:mysql mysql<\/p>\n<p>\u7136\u540e\u518d\u6b21\u91cd\u542f,\u5931\u8d25,\u9519\u8bef\u65e5\u5fd7\u540c\u4e0a.<\/p>\n<p>service mysql start &#8211;skip-grant-tables \u00a0\u8df3\u8fc7\u8868\u8fdb\u884c\u542f\u52a8,\u7136\u540e\u8fdb\u884c\u4f18\u5316\u6216\u4fee\u590d\u6570\u636e\u5e93.<\/p>\n<p>\u4f18\u5316\u6570\u636e\u5e93<\/p>\n<p>mysqlcheck &#8211;all-databases -o \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0#optimize<\/p>\n<p>\u4fee\u590d\u6570\u636e\u5e93<\/p>\n<p>mysqlcheck \u2013all-databases -r \u00a0\u00a0\u00a0\u00a0\u00a0#repair<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u63d0: cpanel\u6388\u6743\u7528\u6237,mysql\u7248\u672c\u75315.6\u964d\u7ea7\u4e3a5.5\u7248\u672c\u540e,\u53d1\u73b0mysql\u65e0\u6cd5\u542f\u52a8. \u67e5\u770b\u65e5\u5fd7:  &#8230; <a title=\"Can&#8217;t open and lock privilege tables:  &#8216;.\/mysql\/proxies_priv.frm&#8217;\" class=\"read-more\" href=\"https:\/\/cn.hostease.com\/xueyuan\/hefaq\/cant-open-and-lock-privilege-tables-mysqlproxies_priv-frm\/\" aria-label=\"\u9605\u8bfb Can&#8217;t open and lock privilege tables:  &#8216;.\/mysql\/proxies_priv.frm&#8217;\">\u9605\u8bfb\u66f4\u591a<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4,49],"tags":[38,45],"class_list":["post-870","post","type-post","status-publish","format-standard","hentry","category-hefaq","category-linux","tag-linux","tag-mysql"],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/posts\/870","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/comments?post=870"}],"version-history":[{"count":1,"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/posts\/870\/revisions"}],"predecessor-version":[{"id":871,"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/posts\/870\/revisions\/871"}],"wp:attachment":[{"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/media?parent=870"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/categories?post=870"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/tags?post=870"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}