|
|
楼主 |
发表于 2026-5-26 09:26:16
|
显示全部楼层
MariaDB [loogcn_data]> show tables;
' N! W: [3 B+ ^" ?$ s; A+-------------------------------+
1 r$ t; \" ^% U" N| Tables_in_loogcn_data |
X; [! y5 E: ~1 v& I6 c+-------------------------------+& Z/ C) C! a4 s. N, p0 ?
| account_user |
, E; f+ W6 u1 H# k7 ^| account_user_groups |
# B: s$ M; ^9 \, h| account_user_social |
, Q$ X" r o4 a& K| account_user_user_permissions |4 ^9 Z4 E4 x$ G2 u& G2 C
| auth_group |: N* t4 R" [! M0 x$ I" F& p! e
| auth_group_permissions |2 n! h2 {/ w& }5 w( ]
| auth_permission |
9 r+ j% @, b' t$ }0 j; Q, X, || django_admin_log |
* P# Q8 |6 n3 ?& h" ~$ }- z) A9 h, H| django_content_type |
9 ~% c+ Q w4 G9 w! r1 X4 t| django_migrations |
! c1 D/ P* S7 t8 f: n| django_session |' h2 {: n# w3 E7 V& e) i: b- R9 `
+-------------------------------+
: A0 \( l/ I m8 @7 A11 rows in set (0.001 sec)1 W2 R u. h$ e& F1 v; [
# [, \- t1 S, f: ]" f
MariaDB [loogcn_data]> select * from django_migrations;
% W) k, T; J, a* R( T# m+----+--------------+------------------------------------------+----------------------------+* j# b2 ]- p$ z! ?
| id | app | name | applied |
- Z; `, r* D$ m; m. q& R( t+----+--------------+------------------------------------------+----------------------------+
! j( u4 Q, W; W0 F| 1 | contenttypes | 0001_initial | 2026-05-23 02:00:34.278182 |' c- n0 j0 {& p4 Z. i
| 2 | contenttypes | 0002_remove_content_type_name | 2026-05-23 02:00:34.505337 |
3 u$ m, O t5 Z+ a! R) W# G ^1 I8 h| 3 | auth | 0001_initial | 2026-05-23 02:00:35.411267 |
% p& \* J6 H$ d$ \+ a# @# u| 4 | auth | 0002_alter_permission_name_max_length | 2026-05-23 02:00:35.567344 |& t. y1 |& h+ ^5 a
| 5 | auth | 0003_alter_user_email_max_length | 2026-05-23 02:00:35.573367 |3 a: \: m2 V; O7 w. r" }& g! N
| 6 | auth | 0004_alter_user_username_opts | 2026-05-23 02:00:35.578785 |
, \ p5 ~# i+ b- _2 w: W| 7 | auth | 0005_alter_user_last_login_null | 2026-05-23 02:00:35.584691 |
: m) G7 q' R- E| 8 | auth | 0006_require_contenttypes_0002 | 2026-05-23 02:00:35.585385 |. L( P* g: f4 K8 B9 E+ t( l
| 9 | auth | 0007_alter_validators_add_error_messages | 2026-05-23 02:00:35.590374 |
/ u$ d, P( q; F/ T! I, i| 10 | auth | 0008_alter_user_username_max_length | 2026-05-23 02:00:35.595604 |$ ]# X/ n" b) Z4 {
| 11 | auth | 0009_alter_user_last_name_max_length | 2026-05-23 02:00:35.605769 |/ q0 M b- [7 S J0 _; }1 z
| 12 | auth | 0010_alter_group_name_max_length | 2026-05-23 02:00:35.705389 |
* K# Z# ]) l2 b) m5 _7 F: c, ?2 ]| 13 | auth | 0011_update_proxy_permissions | 2026-05-23 02:00:35.711556 |
6 w0 w/ F; b; Y5 f K" p/ T* u| 14 | auth | 0012_alter_user_first_name_max_length | 2026-05-23 02:00:35.716632 | [0 l" `2 {7 D7 j
| 15 | accounts | 0001_initial | 2026-05-23 02:00:37.445274 |6 H4 z+ U; R6 D3 w2 O3 L; `( [2 L
| 16 | admin | 0001_initial | 2026-05-23 02:00:37.817254 |) ^& w: U% f; V
| 17 | admin | 0002_logentry_remove_auto_add | 2026-05-23 02:00:37.827664 | G/ H, l+ y* \3 C
| 18 | admin | 0003_logentry_add_action_flag_choices | 2026-05-23 02:00:37.836978 |
9 r5 W% W. |8 G, f& q: h| 19 | sessions | 0001_initial | 2026-05-23 02:00:37.991277 |3 @, \8 a+ R5 g1 e2 k& X' ^
+----+--------------+------------------------------------------+----------------------------+
! Q2 i! F1 W( Z* q% P: a19 rows in set (0.001 sec)
: G! v4 r% g3 A c% H
* D0 j- ~' Z( {9 R6 B4 v2 C) @MariaDB [loogcn_data]> delete from django_migrations where app='accounts';6 K- U/ K1 T9 p- B# t
Query OK, 1 row affected (0.001 sec)5 O! E9 R k, e
( F6 ?8 R5 h6 w( V, ~/ {3 u
MariaDB [loogcn_data]> delete from django_migrations where app='contenttypes';
3 V. H% E5 T" i bQuery OK, 2 rows affected (0.000 sec)5 ~7 H/ L# p$ Z/ X5 O
- S% s9 U5 p, }8 ~MariaDB [loogcn_data]> delete from django_migrations where app='contenttypes ';
: _; H6 d! O& z3 T! eQuery OK, 0 rows affected (0.000 sec)3 ~0 o- c& f+ j/ U3 t! `/ D5 b
7 G$ q! ?- n0 H* ] G Z
MariaDB [loogcn_data]> select * from django_migrations;
) M0 e4 o7 a* V* ^) |+----+----------+------------------------------------------+----------------------------+0 Y& j7 |* d; `6 |. d6 x
| id | app | name | applied |+ _% n0 u5 ~2 K+ C) f7 X* k
+----+----------+------------------------------------------+----------------------------+& [# h7 p+ Z1 @- O/ S4 m6 W
| 3 | auth | 0001_initial | 2026-05-23 02:00:35.411267 |, W M' m* i; Z4 l
| 4 | auth | 0002_alter_permission_name_max_length | 2026-05-23 02:00:35.567344 |
5 K! Q; w# |1 H8 q G| 5 | auth | 0003_alter_user_email_max_length | 2026-05-23 02:00:35.573367 |
! c, j0 U% h' p* t+ T| 6 | auth | 0004_alter_user_username_opts | 2026-05-23 02:00:35.578785 |3 t8 s2 D5 u8 E1 ~" |
| 7 | auth | 0005_alter_user_last_login_null | 2026-05-23 02:00:35.584691 |
$ Y( k' L9 G) ?6 L9 h| 8 | auth | 0006_require_contenttypes_0002 | 2026-05-23 02:00:35.585385 |
. n n: F# i( m9 n| 9 | auth | 0007_alter_validators_add_error_messages | 2026-05-23 02:00:35.590374 |% @) B! \1 S4 ]4 H
| 10 | auth | 0008_alter_user_username_max_length | 2026-05-23 02:00:35.595604 |
2 L# J0 _% O) I9 a' p| 11 | auth | 0009_alter_user_last_name_max_length | 2026-05-23 02:00:35.605769 |
/ g3 n6 u. D" x5 s| 12 | auth | 0010_alter_group_name_max_length | 2026-05-23 02:00:35.705389 |
' B% A/ u# u) D, r9 d( E0 E2 ]( J| 13 | auth | 0011_update_proxy_permissions | 2026-05-23 02:00:35.711556 |
: J7 L) X5 n1 R8 F# `# X| 14 | auth | 0012_alter_user_first_name_max_length | 2026-05-23 02:00:35.716632 |
+ |8 d1 n& B+ r7 X; f| 16 | admin | 0001_initial | 2026-05-23 02:00:37.817254 |
! j8 M4 x: O0 P: R9 t! s| 17 | admin | 0002_logentry_remove_auto_add | 2026-05-23 02:00:37.827664 |
2 p, o0 b% K" W/ k| 18 | admin | 0003_logentry_add_action_flag_choices | 2026-05-23 02:00:37.836978 |6 ]) H7 t, X3 E. ]: o1 `4 k1 b \$ ~
| 19 | sessions | 0001_initial | 2026-05-23 02:00:37.991277 |/ [- t) a/ L2 l* ~
+----+----------+------------------------------------------+----------------------------+
9 z' O: ~+ M% d! r! U; F* x. g16 rows in set (0.000 sec)1 K# e( W) ~* z7 W1 M
8 u5 U1 L4 e* i: KMariaDB [loogcn_data]> delete from django_migrations where app=' sessions ';
@4 e, m+ Y7 x& M" t2 V' X6 u: IQuery OK, 0 rows affected (0.001 sec)! B( Z# x8 _ B+ t: G! c; v: z
4 A% D5 n6 U; q
MariaDB [loogcn_data]> delete from django_migrations where app='auth';
0 J3 ^ E2 H2 m0 ^+ v' W$ gQuery OK, 12 rows affected (0.001 sec)
- q& `& l( W5 I! o% m! M+ N6 _5 P! G# T9 N9 ~$ b6 d! }9 O
MariaDB [loogcn_data]> delete from django_migrations where app='auth' and app='admin';
, _) T3 w( `- [' q/ T- |1 @: }) ]/ pQuery OK, 0 rows affected (0.001 sec)
5 \3 A* j. w9 F$ j9 t$ I6 t) J% D# ^! i X5 K" U5 }% u' Y+ E
MariaDB [loogcn_data]> select * from django_migrations;. G# M9 \8 i6 n0 i) S C8 \) `, q* z
+----+----------+---------------------------------------+----------------------------+2 I. i' }( N# o7 g$ \
| id | app | name | applied |9 q2 v, v' \9 }( j- |8 U
+----+----------+---------------------------------------+----------------------------+
& T- @! h( ]! Q ?9 W& J, l| 16 | admin | 0001_initial | 2026-05-23 02:00:37.817254 |+ ]* x2 {" l/ A: s3 b/ O
| 17 | admin | 0002_logentry_remove_auto_add | 2026-05-23 02:00:37.827664 |
3 f; r6 q) X; T8 J+ p( v( n| 18 | admin | 0003_logentry_add_action_flag_choices | 2026-05-23 02:00:37.836978 |1 h/ V: t) g. ?& O' x, S
| 19 | sessions | 0001_initial | 2026-05-23 02:00:37.991277 |' T, @+ O" R( J2 }
+----+----------+---------------------------------------+----------------------------+
7 g" `- i3 A2 u0 p4 rows in set (0.001 sec). J+ P' J6 A ^* P& l" d2 Q. D
+ V, {6 S% P$ w+ P. H, B2 F3 q1 E, g4 k/ pMariaDB [loogcn_data]> delete from django_migrations where app='admin';; [) _' l6 Q3 ^7 k
Query OK, 3 rows affected (0.000 sec)& t: @, f( `- K8 j# t6 J' G6 d8 P N
! V% {; T/ Z' J7 J) f" \4 V/ XMariaDB [loogcn_data]> select * from django_migrations;/ g5 O6 s& P. u
+----+----------+--------------+----------------------------+; u7 C) Q6 P' C% R8 M4 R' S9 ^% s
| id | app | name | applied |
* s' w% y: [( m( D4 z2 a+----+----------+--------------+----------------------------+
/ x' ~7 ?* W3 n; {2 | c( z| 19 | sessions | 0001_initial | 2026-05-23 02:00:37.991277 |
# u5 e1 c% Q' A# D5 b7 E# o+----+----------+--------------+----------------------------+, g. G; y. ]" [2 x
1 row in set (0.000 sec)
, I7 R" |9 M& J6 j) ~
+ H# h, y2 ~6 k1 x( b9 t8 Z( @3 t. uMariaDB [loogcn_data]> delete from django_migrations where app='sessions';( e# j2 ?0 q5 D" P+ X# l' \# B
Query OK, 1 row affected (0.001 sec)
, e; u; u$ L; q6 R+ X" B
6 l6 K5 |) ~9 l1 [1 zMariaDB [loogcn_data]>+ c# f& Y6 ~9 G1 d+ b
清空所有的表,; E5 C0 j! T% Q" a( A/ }1 g
|
|