gitlab数据库SQLite 转 mySQL-ppabc博客
第一步 关闭服务/etc/init.d/gitlab stop第二部 创建MYSQL用户和数据库create database gitlab;grant all privileges on gitlab.* to "gitlab">flush privileges;导出数据cd /home/gitlab/gitlabbundle exec rake db:data:dump RAILS_ENV=production第三步 修改数据库配置文件cd /home/gitlab/gitlabmv config/database.yml config/database.yml.oldcp config/database.yml.example config/database.yml 编辑改文件修改MYSQL密码vi config/database.yml其中password: "secure password"改为password: "密码" 第四步 恢复数据cd /home/gitlab/gitlabbundle exec rake db:setup RAILS_ENV=productionbundle exec rake db:data:load RAILS_ENV=production 第五步 启动服务/etc/init.d/gitlab start
页:
[1]