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

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)
ticktack's avatar
1
ticktack
asked 13 years ago

Comments

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

todofixthis's avatar todofixthis (13 years ago)
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

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 13 years ago
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 (13 years ago)

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 (13 years ago)
see more comments