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.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
dccarson's avatar
51
dccarson
asked 7 years ago
Evgeny's avatar
13.2k
Evgeny
updated 7 years ago

Comments

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

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
answered 7 years ago, updated 7 years ago
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 (7 years ago)

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

Evgeny's avatar Evgeny (7 years ago)

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

dccarson's avatar dccarson (7 years ago)
see more comments