# BBpress import issue - LoadError: cannot load such file -- mysql2

**URL:** <https://meta.discourse.org/t/bbpress-import-issue-loaderror-cannot-load-such-file-mysql2/27602>\
**Category:** Migration\
**Tags:** bbpress\
**Created:** [April 15, 2015, 4:09pm UTC](https://meta.discourse.org/t/bbpress-import-issue-loaderror-cannot-load-such-file-mysql2/27602 "2015-04-15T16:09:36Z")\
**Posts on this page:** 1\
**Showing post:** 19

<div class="post-metadata">

**Author:** ![Pawel\_Jankiewicz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pawel_jankiewicz/32/120790_2.png) [@Pawel\_Jankiewicz](https://meta.discourse.org/u/Pawel_Jankiewicz)\
**Post date:** [August 13, 2017, 9:57am UTC](https://meta.discourse.org/t/bbpress-import-issue-loaderror-cannot-load-such-file-mysql2/27602/19 "2017-08-13T09:57:09Z")

</div>

This is an old post but I had the same problem. So for future:

you need to import the library via bundler

```
require 'bundler'
Bundler.require 'mysql2'

```

source: [https://stackoverflow.com/questions/21699110/require-cannot-load-such-file-mysql2](https://stackoverflow.com/questions/21699110/require-cannot-load-such-file-mysql2)

---

_[View the full topic](https://meta.discourse.org/t/bbpress-import-issue-loaderror-cannot-load-such-file-mysql2/27602)._
