{"id":793,"date":"2017-04-26T10:51:10","date_gmt":"2017-04-26T16:51:10","guid":{"rendered":"https:\/\/wmbuck.net\/blog\/?p=793"},"modified":"2017-04-26T11:24:23","modified_gmt":"2017-04-26T17:24:23","slug":"mysql-5-7-on-fedora-25","status":"publish","type":"post","link":"https:\/\/wmbuck.net\/blog\/?p=793","title":{"rendered":"Mysql 5.7 on Fedora 25"},"content":{"rendered":"<p>Had a fair amount of trouble getting mysqld to run properly on Fedora 25.<\/p>\n<p>One issue was that mysql 5.7 introduces expiration of passwords, and ALL my passwords expired, including root. I couldn&#8217;t do anything, including change my password. Catch 22.<\/p>\n<p>Also, the tables were out of date, and I needed a mysql_upgrade. But I couldn&#8217;t do that, because my password was expired.<\/p>\n<p>Eventually figured out that I could change the password with mysqladmin password &#8220;goop&#8221;<\/p>\n<p>After this, I was able to get in as root, and eventually get all the passwords marked as legitimate.<\/p>\n<p>I was also able to update all the tables with mysql_upgrade.<\/p>\n<p>In researching and troubleshooting this, I discovered a bunch of errors on cinnamon, with innodb generating errors of the form:<\/p>\n<p>InnoDB: Ignoring tablespace `xbmc_video90\/directorlinktvshow` because it could not be opened.<\/p>\n<p>I&#8217;m pretty sure what happened here was that I removed the files for old xmbc databases from \/var\/lib\/mysql, but didn&#8217;t actually drop the databases first. This is a bad habit left over from pre-Innodb when you could get rid of a mysql database just by removing the files.<\/p>\n<p>I made a lot of attempts to fix this with setting in mysqld.conf:<\/p>\n<p>innodb_force_recovery = 1 (or 2 or 3)<\/p>\n<p>but it never worked. In the end I managed to get rid of these errors by :<\/p>\n<p>mysqladmin create xbmc_videoxx (or xbmc_musicxx)<\/p>\n<p>and then<\/p>\n<p>mysqladmin drop xbmc_videoxx<\/p>\n<p>mysqladmin generates a whole bunch of errors and warnings about not being able to find the files, but it does seem to remove the dreck from the innodb files.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Had a fair amount of trouble getting mysqld to run properly on Fedora 25. One issue was that mysql 5.7 introduces expiration of passwords, and ALL my passwords expired, including root. I couldn&#8217;t do anything, including change my password. Catch 22. Also, the tables were out of date, and I needed a mysql_upgrade. But I &hellip; <a href=\"https:\/\/wmbuck.net\/blog\/?p=793\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Mysql 5.7 on Fedora 25<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,39],"tags":[],"class_list":["post-793","post","type-post","status-publish","format-standard","hentry","category-fedora","category-mysql"],"_links":{"self":[{"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/793"}],"collection":[{"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=793"}],"version-history":[{"count":5,"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/793\/revisions"}],"predecessor-version":[{"id":800,"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/793\/revisions\/800"}],"wp:attachment":[{"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=793"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=793"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=793"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}