Ask Your Question
1

There hasn't database file?

asked 2010-12-09 00:58:18 -0500

suyu8776 gravatar image suyu8776
11 2 1 2

There isn't whole database dump file in the project. I used script "manage.py syncdb" couldn't dump all tables.

delete close flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2010-12-09 01:20:56 -0500

Evgeny gravatar image Evgeny flag of Chile
11074 50 84 182
http://askbot.org/

updated 2010-12-09 02:27:45 -0500

Hello there. In addition to syncdb please run

python manage.py migrate

That will complete the database initialization. It is actually described in the manual. There is a link "install/docs" above in the header.

Tables for "askbot" and the login app "django_authopenid" are managed by the database migration system called "South" which provides management command migrate.

This greatly helps in upgrading the database schema.

Note that if you have other apps under the same migration system you might want to instead specify which application to migrate.

link publish delete flag offensive edit

Comments

Yes,i use "manage.py migrate",and then another error occur:_mysql_exceptions.OperationalError: (1025, "Error on rename of '.\\cnprog\\#sql-b4c_a0' to '.\\cnprog\\django_authopenid_userassociation' (errno: 150)") suyu8776 ( 2010-12-09 02:29:52 -0500 )edit
Just guessing - maybe your MySQL uses InnoDB backend? I have not tested with that. Will try tomorrow. Could you try MyISAM storage? With InnoDB and others there will be problems with the full text search. Can you please also post entire stacktrace and the version of MySQL? And you could also try PostgreSQL, it is actually better. Evgeny ( 2010-12-09 02:56:27 -0500 )edit
Yes,you are right,when i change the MySQL engine to MyISAM,there is no this error and everything is ok.Thanks! suyu8776 ( 2010-12-09 08:47:01 -0500 )edit

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Reliable Askbot Hosting

Create your Q&A site at askbot.com. Managed Askbot hosting at just $15/mo. Dedicated hosting, support contracts, consulting services.

create your Q&A site
30 days free trial

Question tools

Follow

subscribe to rss feed

Stats

Asked: 2010-12-09 00:58:18 -0500

Seen: 53 times

Last updated: Dec 09 '10