#
# PRODUCTION
#
production:
  adapter: mysql2
  encoding: utf8
  reconnect: false
  database: gitlabhq_production
  pool: 10
  username: "<%= @user %>"
  password: "<%= @password %>"
  host: <%= @host %>
  # socket: /tmp/mysql.sock

#
# Development specific
#
development:
  adapter: mysql2
  encoding: utf8
  reconnect: false
  database: gitlabhq_development
  pool: 5
  username: "<%= @user %>"
  password: "<%= @password %>"
  host: <%= @host %>
  # socket: /tmp/mysql.sock

# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
test: &test
  adapter: mysql2
  encoding: utf8
  reconnect: false
  database: gitlabhq_test
  pool: 5
  username: "<%= @user %>"
  password: "<%= @password %>"
  host: <%= @host %>
  # socket: /tmp/mysql.sock

#
# PRODUCTION
#
production:
  adapter: mysql2
  encoding: utf8
  reconnect: false
  database: gitlabhq_production
  pool: 10
  reaping_frequency: 10
  username: "<%= @user %>"
  password: "<%= @password %>"
  host: <%= @host %>
  # socket: /tmp/mysql.sock

#
# Development specific
#
development:
  adapter: mysql2
  encoding: utf8
  reconnect: false
  database: gitlabhq_development
  pool: 5
  username: "<%= @user %>"
  password: "<%= @password %>"
  host: <%= @host %>
  # socket: /tmp/mysql.sock

# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
test: &test
  adapter: mysql2
  encoding: utf8
  reconnect: false
  database: gitlabhq_test
  pool: 5
  username: "<%= @user %>"
  password: "<%= @password %>"
  host: <%= @host %>
  # socket: /tmp/mysql.sock

Set the reaping_frequency to 10 for MySQL
Set the reaping_frequency to 10 for MySQL

This is based on this commit in GitLab:
https://gitlab.com/gitlab-org/gitlab-ce/commit/710cffc6d7f1ca40392c77d603f6dce9ef8b34ac
