{"id":53,"date":"2007-07-01T19:18:01","date_gmt":"2007-07-01T23:18:01","guid":{"rendered":"http:\/\/www.virtualroadside.com\/blog\/index.php\/2007\/07\/01\/fixing-mysql-innodb-problems-on-gentoo\/"},"modified":"2007-07-12T01:58:42","modified_gmt":"2007-07-12T05:58:42","slug":"fixing-mysql-innodb-problems-on-gentoo","status":"publish","type":"post","link":"https:\/\/www.virtualroadside.com\/blog\/index.php\/2007\/07\/01\/fixing-mysql-innodb-problems-on-gentoo\/","title":{"rendered":"Fixing MySQL InnoDB problems on Gentoo"},"content":{"rendered":"<p>For some reason, transactions weren&#8217;t working on my MySQL installation on my Gentoo server, despite me creating the tables as InnoDB tables. I poked around and discovered that InnoDB wasn&#8217;t enabled for some reason, so I figured upgrading MySQL should do the trick. So I went ahead and upgraded my version to 5.0.40 and I got the following great error:<\/p>\n<pre>\r\nInnoDB: Error: ib_logfiles are too small for innodb_thread_concurrency 8.\r\nInnoDB: The combined size of ib_logfiles should be bigger than\r\nInnoDB: 200 kB * innodb_thread_concurrency.\r\nInnoDB: To get mysqld to start up, set innodb_thread_concurrency in my.cnf\r\nInnoDB: to a lower value, for example, to 8. After an ERROR-FREE shutdown\r\nInnoDB: of mysqld you can adjust the size of ib_logfiles, as explained in\r\nInnoDB: http:\/\/dev.mysql.com\/doc\/refman\/5.0\/en\/adding-and-removing.html\r\nInnoDB: Cannot continue operation. Calling exit(1).<\/pre>\n<p>After doing a number of things including deleting the databases (I don&#8217;t have anything important in it at the moment, just for testing) and rebuilding them and other weirdness, its turns out all I needed to do was increase innodb_log_file_size to 2M from 1M and it was fine. So thats ok, and that error went away&#8230; in retrospect, it seems like an obvious solution. Very annoying that it wasn&#8217;t set to that by default.<\/p>\n<p>But still &#8220;SHOW VARIABLES LIKE &#8216;have_innodb'&#8221; is showing DISABLED. So InnoDB is still not enabled. So to fix this thing, I go back in and rm -rf \/var\/lib\/mysql , and then run emerge &#8211;config =dev-db\/mysql-5.0.40&#8230; and when I log back into the mysql console, it works. Seriously, wtf?<\/p>\n<p>Conclusion: InnoDB is a picky thing. Make sure your config is correct.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For some reason, transactions weren&#8217;t working on my MySQL installation on my Gentoo server, despite me creating the tables as InnoDB tables. I poked around and discovered that InnoDB wasn&#8217;t enabled for some reason, so I figured upgrading MySQL should do the trick. So I went ahead and upgraded my version to 5.0.40 and I [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,19],"tags":[],"_links":{"self":[{"href":"https:\/\/www.virtualroadside.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/53"}],"collection":[{"href":"https:\/\/www.virtualroadside.com\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.virtualroadside.com\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.virtualroadside.com\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.virtualroadside.com\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=53"}],"version-history":[{"count":0,"href":"https:\/\/www.virtualroadside.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/53\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.virtualroadside.com\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=53"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.virtualroadside.com\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=53"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.virtualroadside.com\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=53"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}