First time here? Check out the FAQ!
0

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

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

ticktack's avatar
1
ticktack
asked 2012-04-03 08:30:55 -0600
edit flag offensive 0 remove flag close merge delete

Comments

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

todofixthis's avatar todofixthis (2012-04-03 14:06:56 -0600) edit
add a comment see more comments

1 Answer

2

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
Evgeny's avatar
13.2k
Evgeny
answered 2012-04-03 15:54:57 -0600
edit flag offensive 0 remove flag delete link

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's avatar ticktack (2012-04-03 20:16:34 -0600) edit

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

Evgeny's avatar Evgeny (2012-04-05 14:34:08 -0600) edit
add a comment see more comments