First time here? Check out the FAQ!
2

Are dump_forum and load_forum supported on 0.7?

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.

dccarson's avatar
51
dccarson
asked 2017-01-23 13:43:57 -0500
Evgeny's avatar
13.2k
Evgeny
updated 2017-01-27 09:09:36 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

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...

Evgeny's avatar
13.2k
Evgeny
answered 2017-01-23 13:46:18 -0500, updated 2017-01-24 09:56:08 -0500
edit flag offensive 0 remove flag delete link

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's avatar dccarson (2017-01-23 13:47:49 -0500) edit

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

Evgeny's avatar Evgeny (2017-01-24 09:24:45 -0500) edit

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

dccarson's avatar dccarson (2017-01-24 09:54:27 -0500) edit
add a comment see more comments