2016-04-22 75 views

回答

0

你的麒麟日誌中的第一行突出問題:

/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.6/lib/active_record/connection_adapters/connection_specification.rb:177:in `rescue in spec': Specified 'mysql2' for database adapter, but the gem is not loaded. Add `gem 'mysql2'` to your Gemfile (and ensure its version is at the minimum required by ActiveRecord). (Gem::LoadError) 

您已指定你要使用MySQL在config/database.yml文件中,但是Gem mysql2似乎未安裝。 Gem包含用於與MySQL數據庫進行交互的必要庫。

以下命令:

gem list

將列出當前安裝的寶石,讓您驗證mysql2是否是在他們之中。

安裝文件的這一部分涵蓋了您的GitLab必要寶石的安裝安裝:

https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/install/installation.md#install-gems