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

楼主 |
发表于 2024-7-23 16:00:24
|
显示全部楼层
测试连接 带ip地址访问:9 S5 g0 L. E; \8 T1 a# U- A( x' m
mysql -u victor -p# {( \: Q1 q3 }5 \+ E
Enter password: 4 z8 w' o5 Y* m, J* o4 E8 h
Welcome to the MariaDB monitor. Commands end with ; or \g.8 d8 c0 ?$ x+ {8 L. ]
Your MariaDB connection id is 16
+ a& H$ d* ]4 SServer version: 10.5.22-MariaDB MariaDB Server; t2 F. _. f X* _
7 e% s" \3 r3 m) a# H7 i; j: N, U# yCopyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.1 ~: b* f: ~0 ^ `; n& Y- J
1 G1 `, W+ J: K4 E/ `, Y* f" V4 H
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
# \% o+ G2 O! T: r! u4 G* Y* \0 o. x5 \- R1 O& k/ N9 ~" a. k
MariaDB [(none)]> show databases;( V5 v S. N! g& [5 |
+--------------------+
2 l9 A; [4 N: \7 d| Database |" ]- O7 a& {/ |6 _1 L
+--------------------+/ {$ M8 N0 L7 z3 N _% l# M) Z
| information_schema |
! t; K) o1 n5 A/ b, m| restflask |
) @& ^+ F: `5 G2 U- k, Z/ ^+--------------------+( _& \9 ?# _1 _" {. C
2 rows in set (0.001 sec)
6 A1 u+ P( x. o9 V; W# c% h1 a& X1 ^5 `' Q8 Y9 R
MariaDB [(none)]> use restflask% A/ g. u, d1 p& _/ v1 S
Database changed
+ A1 f' c: V7 E6 cMariaDB [restflask]> show tables;
& s- ]% \2 r! A iEmpty set (0.000 sec)4 V+ K$ B) G9 j" h
% H- N6 Y4 W7 ~MariaDB [restflask]> exit
# |/ S2 A7 j9 k% ^% a% `Bye$ N4 v! _' e: r+ d; F* X
[root@python-flask mysqlclient-2.2.4]# mysql -u victor -p -h 192.168.13.131
# U7 `6 m) G X/ ?+ u/ OEnter password: 1 ^. B8 T6 R% E# Y: E
Welcome to the MariaDB monitor. Commands end with ; or \g.% t& k* }9 Y7 q& U
Your MariaDB connection id is 17% t$ Q3 {* x2 k1 I7 k/ p1 c1 _
Server version: 10.5.22-MariaDB MariaDB Server
: c) Y' W7 e9 `& Z9 R% c; e1 e( c' s" E: C) H
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
( n I' X5 X( V0 Q9 k, E/ O3 \3 c+ V% W. G
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
1 ~' o0 v e2 s, ?( R$ n6 k
2 O" @+ T g) i: W* tMariaDB [(none)]> exit
, j7 A* [. C% e% f8 q# o* `Bye- m; }/ D. [! i7 i) Q$ s% |
|
|