Ask Your Question
0

how can I get askbot's database ,the detail of tables?

asked 2012-04-03 08:30:55 -0500

ticktack gravatar image

I want to get the tables sql script.how to get it???

edit retag flag offensive close merge delete

Comments

Is this a hosted account, or did you install the code on your own server?

todofixthis gravatar imagetodofixthis ( 2012-04-03 14:06:56 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
2

answered 2012-04-03 15:54:57 -0500

Evgeny gravatar image

This is database specific. You can log in to the db shell by typing:

python manage.py dbshell

Or log in to the database directly via an appropriate client.

then in mysql

show tables;

in sqlite

.tables

in postgres

\d
edit flag offensive delete link more

Comments

I haven't IDE,can you gave me the sql script of mysql version by email? email address is yfq2010@gmail.com ,thanks you very much.

ticktack gravatar imageticktack ( 2012-04-03 20:16:34 -0500 )edit

All the commands are to be typed into the shell, no IDE needed. You can also run command python manage.py sqldump

Evgeny gravatar imageEvgeny ( 2012-04-05 14:34:08 -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: 2012-04-03 08:30:55 -0500

Seen: 169 times

Last updated: Apr 03 '12