{"id":1832,"date":"2012-03-24T08:42:24","date_gmt":"2012-03-24T12:42:24","guid":{"rendered":"http:\/\/linuxhostingsupport.net\/blog\/?p=1832"},"modified":"2013-03-20T08:38:23","modified_gmt":"2013-03-20T12:38:23","slug":"mysql-failed-after-upgrade-table-mysql-plugin-doesnt-exist","status":"publish","type":"post","link":"https:\/\/linuxhostingsupport.net\/blog\/mysql-failed-after-upgrade-table-mysql-plugin-doesnt-exist","title":{"rendered":"Mysql failed after upgrade: Table &#8216;mysql.plugin&#8217; doesn&#8217;t exist"},"content":{"rendered":"<p>After performing a mysql upgrade, you may run into a problem where Mysql won&#8217;t start successfully and will result in a &#8220;Table &#8216;mysql.plugin&#8217; doesn&#8217;t exist&#8221; error message. The mysql error logs will state something like follows:<\/p>\n<blockquote>\n<pre>\/usr\/libexec\/mysqld: Table 'mysql.plugin' doesn't exist\r\n110620\u00a0 01:01:01 [ERROR] Can't open the mysql.plugin table.\r\nPlease run mysql_upgrade to create it.<\/pre>\n<\/blockquote>\n<p>The solution is to run <strong>mysql_upgrade<\/strong> to create the mysql.plugin table but the problem is you can execute the command only when Mysql is online. Tricky situation, isn&#8217;t it?<\/p>\n<p><strong>This mostly likely happens when mysql is still using the old my.cnf file after the upgrade.<\/strong> The my.cnf of the new Mysql version is saved as \/etc\/my.cnf.rpmnew and this is the file you should be using<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"># cp \/etc\/my.cnf \/etc\/my.cnf.old<\/span>\r\n<span style=\"color: #0000ff;\"># cp \/etc\/my.cnf.rpmnew \/etc\/my.cnf<\/span>\r\n<span style=\"color: #0000ff;\"># \/etc\/init.d\/mysqld start<\/span><\/pre>\n<\/blockquote>\n<p>Once Mysql is started, you can now execute mysql_upgrade:<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"># mysql_upgrade -uroot -p &lt;mysqlpass&gt;<\/span><\/pre>\n<\/blockquote>\n<p>This will create the &#8216;mysql.plugin&#8217; table and will make sure the mysql database is uptodate as per the newer version.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>After performing a mysql upgrade, you may run into a problem where Mysql won&#8217;t start successfully and will result in a &#8220;Table &#8216;mysql.plugin&#8217; doesn&#8217;t exist&#8221; error message. The mysql error logs will state something like follows:<\/p>\n<p>\/usr\/libexec\/mysqld: Table &#8216;mysql.plugin&#8217; doesn&#8217;t exist<br \/>\n110620\u00a0 01:01:01 [ERROR] Can&#8217;t open the mysql.plugin table.<br \/>\nPlease run mysql_upgrade to create it.<\/p>\n<p>The solution is to run mysql_upgrade to create the mysql.plugin table but the problem is you can execute the command only when Mysql is online. Tricky situation, isn&#8217;t it?<br \/>\nThis mostly likely happens when mysql is still using [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[111],"tags":[1373,1375,1372,1374],"_links":{"self":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/1832"}],"collection":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/comments?post=1832"}],"version-history":[{"count":5,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/1832\/revisions"}],"predecessor-version":[{"id":1835,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/1832\/revisions\/1835"}],"wp:attachment":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/media?parent=1832"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/categories?post=1832"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/tags?post=1832"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}