Skip to content

Instantly share code, notes, and snippets.

@samueldolha
Created March 6, 2019 21:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samueldolha/392a58f7f17c43376bdb3182bd075031 to your computer and use it in GitHub Desktop.
Save samueldolha/392a58f7f17c43376bdb3182bd075031 to your computer and use it in GitHub Desktop.
#!/usr/bin/env sh
pip install virtualenv
virtualenv -p `which python2.7` env-mysql2pgsql
source env-mysql2pgsql/bin/activate
brew install mysql
brew unlink mysql
brew install mysql-connector-c
sed -i -e 's/libs="$libs -l "/libs="$libs -lmysqlclient -lssl -lcrypto"/g' /usr/local/bin/mysql_config
pip install MySQL-python
brew unlink mysql-connector-c
brew link --overwrite mysql
mysql -uroot
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';
create database db;
quit
mysql -uroot -ppassword --silent db < aeherman.sql
brew install pgloader
brew services start postgresql
pip install py-mysql2pgsql
py-mysql2pgsql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment