# 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:** 2

<div class="post-metadata">

**Author:** ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)\
**Post date:** [May 22, 2017, 8:46pm UTC](https://meta.discourse.org/t/ruby-mysql2-error-on-migration/63157/2 "2017-05-22T20:46:52Z")

</div>

Try this inside the docker container:

```bash
apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y libmysqlclient-dev
su discourse -c 'export IMPORT=1; bundle install --no-deployment --without test --without development --path vendor/bundle'
su discourse -c 'export IMPORT=1; bundle exec ruby script/import_scripts/vanilla_mysql.rb'

```

---

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