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

楼主 |
发表于 2024-7-23 16:00:24
|
显示全部楼层
测试连接 带ip地址访问:
C2 P* @: h; F& V' W! M. U mysql -u victor -p% s) J. F9 s u4 R) X
Enter password:
2 F0 P( P) n0 P* u% y+ J) kWelcome to the MariaDB monitor. Commands end with ; or \g.
' O+ E. B: W3 \7 hYour MariaDB connection id is 16
0 U+ b, a0 t; m- }, bServer version: 10.5.22-MariaDB MariaDB Server
# }- X" P" n% g' f( q$ r1 L; a; _! l# J& b$ N% j0 L
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others./ c) i1 x0 {9 E! e7 R
+ c! g' u; D" I9 A' @4 H! n
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
5 P$ c- W4 _- i) b, _+ I% q2 J+ V9 i
MariaDB [(none)]> show databases;* S5 p( e# m# r/ M9 G* I' r" p; ]8 H
+--------------------+
2 g3 j# ]' K$ c5 n. || Database |8 h! V' A6 \0 \0 o
+--------------------+ ~& S5 r6 J2 I, e- B
| information_schema |
1 z! R. W' b2 L. b0 o+ v5 ^% {| restflask |
! V: S a s$ @* S+--------------------+
4 T# d2 G6 Y# E+ y& Z2 rows in set (0.001 sec)
( [( [) T7 |3 z8 W1 g, B5 U& u/ A4 N1 t# V1 p
MariaDB [(none)]> use restflask
; m/ ^3 } W9 B% t1 gDatabase changed
6 K* A1 S; D+ }# g1 U1 n" M+ HMariaDB [restflask]> show tables;* W4 \ p( D6 l: N
Empty set (0.000 sec)9 x# x% F" v; B; x
5 |; U1 i, x# [& I2 EMariaDB [restflask]> exit
- I" @( {4 O2 b0 D5 NBye7 P$ Z" D6 s- K
[root@python-flask mysqlclient-2.2.4]# mysql -u victor -p -h 192.168.13.131
0 p# C0 v9 S6 sEnter password: & D) u/ j8 o. p" e7 w) v
Welcome to the MariaDB monitor. Commands end with ; or \g.' |- |! {2 k5 y$ T* }
Your MariaDB connection id is 179 ^0 t( a; O+ ]3 T6 ?
Server version: 10.5.22-MariaDB MariaDB Server
1 e: a* \3 M& V, S: e) g
* p! O2 ~. G8 X0 RCopyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.) D! [1 R' D3 G8 A
8 l9 o. U9 ^7 j/ h
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
2 E( v0 |) g) C, ~# N9 R
}# k' a3 {) l) [# M# d# qMariaDB [(none)]> exit7 h0 B# ?* w' W$ S2 ~, J: p3 T( I
Bye& V5 e/ m8 C; s1 J8 W8 _
|
|