# Install and import Mysql on the development environment

**URL:** <https://meta.discourse.org/t/install-and-import-mysql-on-the-development-environment/68485>\
**Category:** Development\
**Created:** [21. August 2017 um 16:26 UTC](https://meta.discourse.org/t/install-and-import-mysql-on-the-development-environment/68485 "2017-08-21T16:26:33Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![bekircem](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bekircem/32/44582_2.png) [@bekircem](https://meta.discourse.org/u/bekircem)\
**Post date:** [21. August 2017 um 16:26 UTC](https://meta.discourse.org/t/install-and-import-mysql-on-the-development-environment/68485/1 "2017-08-21T16:26:33Z")

</div>

Hi there!

I’ve installed development environment on my Ubuntu 16.04 local machine by [following this tutorial](https://meta.discourse.org/t/beginners-guide-to-install-discourse-on-ubuntu-for-development/14727). Everything is fine. Discourse is work perfect on localhost:3000.

I want to import my Mybb forum database to my local Discourse installation. I want to apply the steps there, but when i use `./launcher enter app` it failed. (bash: ./launcher no such file or directory)

> [@Migrating from mybb](https://meta.discourse.org/t/migrating-from-mybb/25563/5):
>
> @elberet, thanks for your help so far. I went for the second option - connecting from the Discourse machine to the MySQL server of the running forum (set to maintenance mode) after enabling port 3306 in the firewall and setting bind-address = 0.0.0.0 in /etc/mysql/my.cnf followed by a sudo service mysql restart. Here’s what I’ve done based on your advice: cd /var/discourse ./launcher enter app apt-get update apt-get install libmysqlclient-dev mc -y gem install mysql2 # mysql2-0.3.18 got instal…

```
cd /var/discourse
./launcher enter app
apt-get update
apt-get install libmysqlclient-dev mc -y
gem install mysql2 # mysql2-0.3.18 got installed
su - discourse
cd /var/www/discourse/script/import_scripts
bundle install
mcedit mybb.rb # make edits to the MySQL connection details
RAILS_ENV=production ruby mybb.rb # no idea what "bundle exec" does

```

What should do I have to do sequentially? What should pay attention? I look forward to your suggestions. Thank you.

@pfaffman

---

_[View the full topic](https://meta.discourse.org/t/install-and-import-mysql-on-the-development-environment/68485)._
