cloudfoundry-attic / cf-mysql-broker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

exec rake spec failing

akhiljain93 opened this issue · comments

When I run this script, it asks me to set the innodb_stats_persistent variable and provides me with two options:
Option 1 (permanent): set innodb_stats_persistent=OFF in my.cnf
Option 2 (temporary): in mysql CLI, "set global innodb_stats_persistent=OFF"

However in both the options, when I try starting mysql after I'm done with the modifications, it still says

unknown variable 'set innodb_stats_persistent=OFF'

Please help

We have created an issue in Pivotal Tracker to manage this. You can view the current status of your issue at: https://www.pivotaltracker.com/story/show/73123200.

@akhiljain93,

It looks like you pasted the whole string set global innodb_stats_persistent=OFF into your my.cnf file. Change that line to just be global innodb_stats_persistent=OFF (notice there is no set at the beginning) and you should be fine.

We're closing this issue, but please feel free to reopen it if you have further problems.

CF Community Pair (@jmtuley and @jfoley)

Hi @jmtuley and @jfoley,
I did what you suggested, but the output is still the same. in fact when I try to start mysql, my prompt shows an error with this setting.
$ mysql -u root -p
mysql: unknown variable 'global innodb_stats_persistent=OFF'

I'm sorry; that looks like my mistake. You actually don't need global either.