Created
March 6, 2019 21:28
-
-
Save samueldolha/392a58f7f17c43376bdb3182bd075031 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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