gitlabhq/gitlabhq — pull request #603 by yvmarques (2012-03-27 13:43:14+00:00)
Title: Changed for mysql2 adapter

As you are using mysql2 for mysql, I guess this fix should also use mysql2. At least it's working for me. And you should restart the app and the worker also.