by Ryan Walker

MySQL server has gone away with Sunspot and Cucumber

After setting up Sunspot pre-release:

gem install sunspot
gem install sunspot_rails
gem install rsolr -v 0.9.6
cp config/sunspot.yml.example config/sunspot.yml

I got this error:

Using the default profile...
Sunspot server is starting...
Sunspot server took 2.72 sec. to get up and running. Let's cuke!
Mysql::Error: MySQL server has gone away: SHOW TABLES (ActiveRecord::StatementInvalid)

Solution is to add

reconnect: true

to cucumber section of database.yml


Thanks to help from Stack Overflow