|
|
楼主 |
发表于 2024-7-23 16:00:24
|
显示全部楼层
测试连接 带ip地址访问:
. p ]/ p$ R; n* o* h mysql -u victor -p
8 t5 \* L* f6 e% u B) j; \; x. HEnter password:
8 {1 B) y2 ?% g( q1 J7 ^ [7 SWelcome to the MariaDB monitor. Commands end with ; or \g.
6 y8 F2 u3 m6 @5 `. N- s" `, s% EYour MariaDB connection id is 16
$ P" n1 |; i# {4 i3 j, ]4 K2 Z' N2 SServer version: 10.5.22-MariaDB MariaDB Server) r% b2 n5 t8 v; A
1 f6 d2 h3 P! E8 n3 A
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
, t5 s- i8 |, i7 `" z! b1 M! J
& {. r1 ~; } }6 N6 qType 'help;' or '\h' for help. Type '\c' to clear the current input statement.
, V- o% S! F% x: `: `6 O K s Y; B) T/ C: j; t" Y
MariaDB [(none)]> show databases;
7 P* w& E+ v, S$ x, y* U7 Z+--------------------+& l5 S1 Z! ~6 b
| Database |
) w$ ^' ^1 m' ^& \* I+--------------------+! y6 u ~9 Z5 M/ e E W8 Q- O
| information_schema |
* g/ b2 i; d3 k5 @4 J| restflask |
6 o6 [4 _- }6 v, t' o4 ~& p7 n+--------------------+ j4 R% P( D2 U; F: P
2 rows in set (0.001 sec)
h: e/ V$ l7 @ Y3 Y3 a$ o1 i( @- {; @/ S1 n" C- _
MariaDB [(none)]> use restflask
' k' D( K5 Y# dDatabase changed- C( k, x; R" t* P& }" J
MariaDB [restflask]> show tables;
+ Z8 W" b3 ?4 WEmpty set (0.000 sec)# q4 c& {% i3 q: S2 r
6 q a% u d e) m
MariaDB [restflask]> exit9 j4 {9 V p1 r R. T! E4 N( r) o
Bye
9 h" b, S& B, B! u- W- ?8 N[root@python-flask mysqlclient-2.2.4]# mysql -u victor -p -h 192.168.13.131/ r* ~5 W% J& }/ c3 O" Z
Enter password:
/ y& R% p% v$ \) U! EWelcome to the MariaDB monitor. Commands end with ; or \g.
0 ~0 q! k1 y7 w& Z8 J& DYour MariaDB connection id is 173 k, F8 ~: Z3 @& z! i! w4 D9 `
Server version: 10.5.22-MariaDB MariaDB Server# ?, r! S: q" w$ b5 y+ Y
9 G! e- i8 o6 T1 F( O( x
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
9 I6 c0 j3 R1 [
8 I! \3 ?5 q- r5 J9 aType 'help;' or '\h' for help. Type '\c' to clear the current input statement.- g% u) i' P3 Z% E
# P8 {; i! A6 {( IMariaDB [(none)]> exit
! U0 v6 E" Q% Z3 K3 tBye7 T) n* i Z9 K7 ~
|
|