Ask Your Question
1

Are dump_forum and load_forum supported on 0.7?

asked 2017-01-23 13:43:57 -0500

dccarson gravatar image

updated 2017-01-27 09:09:36 -0500

Evgeny gravatar image

It seems that dump_forum and load_forum are no longer supported on the 0.7.x release stream.

If they are still supported, can someone explain where they have gone and how I can use them.

(0)[root@topsail askbot_top] python manage.py | grep -i forum
(1)[root@topsail askbot_top]

If they are not supported, is there any way to produce a database-agnostic dump of all the data in a running system?

For example, suppose I wanted to switch my database from MySQL to postgres. I cannot see how this is possible without having some form of dump that knows nothing about database specifics. (Note that this is not necessarily my question. I want to know the answer to the more general question of running dump_forum/load_forum or equivalent.)

Thanks.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-01-23 13:46:18 -0500

Evgeny gravatar image

updated 2017-01-24 09:56:08 -0500

Not supported, instead please use database dump and restore facilities (e.g pg_dump)

However, Django has commands dumpdata and loaddata - these should work across different database backends.

If you are looking to convert a large MySQL database to PostgresQL - have a look at available tools: https://wiki.postgresql.org/wiki/Conv...

Also, please have a look at this documentation page http://askbot.org/doc/mysql-to-postgr...

edit flag offensive delete link more

Comments

In my example, say I want to move from MySQL to postgres. I cannot dump a MySQL database and restore it to a postgres database, can I?

dccarson gravatar imagedccarson ( 2017-01-23 13:47:49 -0500 )edit

@dccarson - update my answer, pls have a look.

Evgeny gravatar imageEvgeny ( 2017-01-24 09:24:45 -0500 )edit

OK, I'll give those ideas a try. Thanks.

dccarson gravatar imagedccarson ( 2017-01-24 09:54:27 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2017-01-23 13:43:57 -0500

Seen: 111 times

Last updated: Jan 24