mysql2psql-gem

Error transferring database from MySql to Postgres using mysql2pgsql

别等时光非礼了梦想. 提交于 2019-12-09 18:24:21
问题 In order to host my Python/Django app on Heroku, I'm trying to convert my db from MySQL to Postgres following the instructions on https://realpython.com/blog/python/migrating-your-django-project-to-heroku/. I'm currently running OSX 10.9, and am using the tool mysql2pgsql to make the transfer. When I try to run the command " py-mysql2pgsql -v -f mysql2pgsql.yml " to actually transfer the db, it copies over the first three tables, and then hits a snag on auth_user, returning the error " raise

Error transferring database from MySql to Postgres using mysql2pgsql

烈酒焚心 提交于 2019-12-04 08:39:54
In order to host my Python/Django app on Heroku, I'm trying to convert my db from MySQL to Postgres following the instructions on https://realpython.com/blog/python/migrating-your-django-project-to-heroku/ . I'm currently running OSX 10.9, and am using the tool mysql2pgsql to make the transfer. When I try to run the command " py-mysql2pgsql -v -f mysql2pgsql.yml " to actually transfer the db, it copies over the first three tables, and then hits a snag on auth_user, returning the error " raise Exception('unknown %s' % column['type']) Exception: unknown datetime(6) ". This seems strange, because