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

<div class="post-metadata">

**Author:** ![pgr](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pgr/32/156783_2.png) [@pgr](https://meta.discourse.org/u/pgr)\
**Post date:** [November 12, 2018, 3:15pm UTC](https://meta.discourse.org/t/ruby-mysql2-error-on-migration/63157/9 "2018-11-12T15:15:44Z")

</div>

Another tip that might be useful for anyone else coming into this thread:

Using that command given above with `IMPORT=1` will trigger this part of your `Gemfile`:

```ruby
if ENV["IMPORT"] == "1"
  gem 'mysql2'
  gem 'redcarpet'
  gem 'sqlite3', '~> 1.3.13'
  gem 'ruby-bbcode-to-md', github: 'nlalonde/ruby-bbcode-to-md'
  gem 'reverse_markdown'
  gem 'tiny_tds'
end

```

I ran into problems with the installation of `tiny_tds`, and then with another thing it depends on called `FreeTDS`. After some wasted time on this I realized these are useful only for MS SQL imports, which I won’t be using, so I simply commented out the `tiny_tds` line in my `Gemfile`.

(it would be nice to have a comment in front of each of those packages saying what they are used for, if anyone knows)

---

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