How can I easily convert a Django app from mySQL to PostgreSQL?

后端 未结 7 1896
一个人的身影
一个人的身影 2021-01-31 12:04

Has anyone done this? Is it an easy process? We\'re thinking of switching over for transactions and because mysql seems to be \"crapping out\" lately.

7条回答
  •  野的像风
    2021-01-31 12:24

    You can do that using Django serializers to output the data from MySQL's format into JSON and then back into Postgres. There are some good artices on internet about that:

    Migrating Django from MySQL to PostgreSQL the Easy Way

    Move a Django site to PostgreSQL: check

提交回复
热议问题