# Ruby mysql2 error on migration

**URL:** <https://meta.discourse.org/t/ruby-mysql2-error-on-migration/63157>\
**Category:** Product Support\
**Created:** [May 22, 2017, 8:12pm UTC](https://meta.discourse.org/t/ruby-mysql2-error-on-migration/63157 "2017-05-22T20:12:49Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![CarlosDaniel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/carlosdaniel/32/273223_2.png) [@CarlosDaniel](https://meta.discourse.org/u/CarlosDaniel)\
**Post date:** [September 29, 2022, 1:50pm UTC](https://meta.discourse.org/t/ruby-mysql2-error-on-migration/63157/11 "2022-09-29T13:50:26Z")

</div>

Hi. I’m having the same trouble here when running this script but those commands are not helping… This is the output I get when trying to run the `su discourse -c 'export IMPORT=1; bundle exec ruby script/import_scripts/vanilla_mysql.rb'`:

```plaintext
root@ip-xxx-xx-xx-xx-app:/var/www/discourse# su discourse -c 'export IMPORT=1; bundle exec ruby script/import_scripts/snuffhouse.rb'
You are trying to install in deployment mode after changing
your Gemfile. Run `bundle install` elsewhere and add the
updated Gemfile.lock to version control.

If this is a development machine, remove the /var/www/discourse/Gemfile freeze
by running `bundle config unset deployment`.

The list of sources changed
The dependencies in your gemfile changed

You have added to the Gemfile:
* mysql2
* redcarpet
* sqlite3 (~> 1.3, >= 1.3.13)
* ruby-bbcode-to-md
* reverse_markdown
* tiny_tds
* csv

```

---

_[View the full topic](https://meta.discourse.org/t/ruby-mysql2-error-on-migration/63157)._
