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

楼主 |
发表于 2024-7-23 16:00:24
|
显示全部楼层
测试连接 带ip地址访问:/ }2 M8 r4 I3 t! X1 s2 q4 N: s7 @
mysql -u victor -p
+ }9 O- l, C0 |Enter password:
2 V3 _' x% E( _4 o8 ~Welcome to the MariaDB monitor. Commands end with ; or \g.
+ V, ^. ?, _" Y, U7 q3 p8 kYour MariaDB connection id is 16
6 v/ D [7 n0 k( G+ @' eServer version: 10.5.22-MariaDB MariaDB Server) P$ g* @: g$ |5 r8 ]& q
$ u, _' n. M& c8 o
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
( q( k9 u5 f0 Q% x: L
4 E! `3 O2 |( dType 'help;' or '\h' for help. Type '\c' to clear the current input statement.5 t, y4 B: T% V
. Z/ j3 e, O2 H
MariaDB [(none)]> show databases;
& [/ W4 O" ]& i/ o+--------------------+
1 B1 {. h/ w9 h& K1 W| Database |
8 D/ V3 v( B6 s+--------------------+
) S# Y% A6 R+ i& S! ?3 K| information_schema |
) S0 o& }: y' R1 B w| restflask |6 b4 d/ |3 O3 {, N& _! u2 ?: E/ J
+--------------------+
5 ~, `4 P9 X+ S: r% D2 rows in set (0.001 sec)( e1 ], Y- {8 O/ C+ o9 k
8 P# B/ Q3 M3 ]9 P4 A; v6 V3 `& M2 nMariaDB [(none)]> use restflask
) i4 E& U- t1 @ F$ u$ PDatabase changed4 f/ N* l3 Z4 s. U2 [
MariaDB [restflask]> show tables;. u/ L! N: C7 a# [- K9 Q( G
Empty set (0.000 sec)
2 }, F$ X. J6 Y' D7 S: e% a) Q/ Z' M
MariaDB [restflask]> exit6 @$ M% T* H# U- s# g6 N
Bye
P; S) l# v3 b8 j/ J[root@python-flask mysqlclient-2.2.4]# mysql -u victor -p -h 192.168.13.131
' P2 {7 A3 ^0 j6 g" o B" @Enter password:
I% I2 g: d5 ]% [Welcome to the MariaDB monitor. Commands end with ; or \g.. n& u$ z, y+ _+ A
Your MariaDB connection id is 17/ [7 t' r" T/ l7 y7 f
Server version: 10.5.22-MariaDB MariaDB Server
1 I, H# y% R! y9 f# t- [, \! `3 F1 E$ |! d) X/ y6 o9 A
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.6 U8 b2 h. {: a$ s) `
2 P' x( U' Z, _ C5 W4 m" eType 'help;' or '\h' for help. Type '\c' to clear the current input statement." [. h# i z& _3 X h3 c* w
1 I3 f- E+ n# q; D$ G
MariaDB [(none)]> exit
z( w# k) C( i. S4 v% h- z2 q7 |" ~Bye
, |4 I6 I/ Q; |, N5 p0 O' {6 } |
|