Mysql-nagger is a scout plugin to execute arbitrary mysql statements on a scout install.
On ubuntu, on the source system, this can help you a lot:
$ sudo apt-get install libmysqlclient-dev
You can gem install mysql then if you want to roll like that.