Migrate from SQLite to MySQL - Hopebaytech/gitlabhq GitHub Wiki
GitLab ceases to support SQLite from v4.0 onwards. If you are still using SQLite follow these steps in order to migrate your data from SQLite to MySQL.
- Update to the latest GitLab
- Run
bundle exec rake db:data:dump RAILS_ENV=productionto extract the data currently stored in SQLite. - Follow the database setup guide to install MySQL and update your
database.yml - Run
bundle exec rake db:setup RAILS_ENV=productionto setup your database tables in MySQL. - Run
bundle exec rake db:data:load RAILS_ENV=productionto load the data saved in step 2 into MySQL. - Rename your
db/production.sqlitefile (don't delete it yet). - Restart GitLab and test if all the data has been transfered correctly.
- Delete your
db/*.sqlitefiles, if you are sure everything worked.