- 积分
- 16843
在线时间 小时
最后登录1970-1-1
|

楼主 |
发表于 2024-7-23 16:00:24
|
显示全部楼层
测试连接 带ip地址访问:/ j) @/ X7 \3 e ?: T5 @
mysql -u victor -p2 w7 X8 f9 ?* R9 f3 J% a% N5 Z
Enter password: , F. a, B1 B% m, R! ]) ]
Welcome to the MariaDB monitor. Commands end with ; or \g.
/ q6 J4 e" g; \! D6 b& f% G( f# @Your MariaDB connection id is 16
0 d) u, E5 {- k$ VServer version: 10.5.22-MariaDB MariaDB Server
* N* N( @% i$ P9 d5 `, a' q1 ~: v5 u+ l: ^; J$ C; r
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
! _8 x d1 f8 w( `0 q# e" x
6 e1 r, ]6 P; b$ `; uType 'help;' or '\h' for help. Type '\c' to clear the current input statement.! p- w) N: t2 J+ j5 r' I
9 }. a# e% ?. }, m5 _% eMariaDB [(none)]> show databases;& j7 ~& x/ C! K4 H" g [' A7 f5 Q( a, O
+--------------------+
2 v' \) r$ P4 X9 v1 K7 Y$ v| Database |, N! d9 D5 V# a
+--------------------+4 t5 Y! [" z+ z; M- o3 z4 z- [
| information_schema |! U* f$ `( D, J5 R+ S( i+ b6 K
| restflask |
6 F$ |4 {6 z& v4 d5 O2 j% J8 Z+--------------------+
( S( h1 |6 R. [" D2 rows in set (0.001 sec)
( n S& m, v- S' s
2 W4 b5 }8 Q. `2 D0 uMariaDB [(none)]> use restflask
1 j- R% I+ S# [% S- NDatabase changed
9 K# q$ V, U6 {. b, wMariaDB [restflask]> show tables;
! f' A9 v) S2 k6 t bEmpty set (0.000 sec)4 q! w/ V/ w/ S6 b% l& Z
* k! P& j; U6 J2 D
MariaDB [restflask]> exit
+ [3 r0 }3 X0 h7 G: B lBye/ ?6 ]) {, \) `7 Y0 s
[root@python-flask mysqlclient-2.2.4]# mysql -u victor -p -h 192.168.13.131& m* S( B" l4 I& L1 c u% Q$ Y S2 [
Enter password:
" [, f6 T$ t! a' JWelcome to the MariaDB monitor. Commands end with ; or \g.
; m6 w$ N8 }- g. j( [( V/ C: wYour MariaDB connection id is 173 Z' h4 o" C2 e/ r% s8 L
Server version: 10.5.22-MariaDB MariaDB Server: B) q; H# R8 c3 B) h
9 M9 \ U( l3 N2 S7 @- s
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.. d3 y( h0 H( T7 Y' F: G! F7 K4 {- G
: \& N' v. r* i- G. C
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
/ A- U! Z2 t) E$ ?2 b6 @$ {7 s1 Z
9 F- N, t: t4 O$ E$ e0 e, |MariaDB [(none)]> exit8 G9 _, `6 V' Z6 x5 W9 N
Bye
" O9 X) S* V _3 X+ H |
|