Conver mysql .sql file in to postgreql .psql



1. mysqldump --compatible=postgresql --default-character-set=utf8 -r marketacreative.mysql -u root marketacreative

2. python db_converter.py marketacreative.mysql marketacreative.psql
Get db_converter.py from
https://github.com/lanyrd/mysql-postgresql-converter

3. psql -U root -h localhost -d marketacreative -f  marketacreative.psql
 

Comments

Popular Posts

How to pass hash in Postman

nginx: unrecognized service

Reading Excel Sheets using "Roo" gem in ruby on rails

Bootstrap Select Picker append add new item if search not exist

Add CORS to Nginx on AWS Elastic Beanstalk

Enable gzip compression on Elastic Beanstalk with nginx

Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'

Get video duration by URL in Ruby on Rails

site-enables nginx setting in ruby in rails