字段:
查看数据库版本:
8.16.0.211
[root@master-1 ~]# kubectl get po | grep mysql
mysql-mysql-7b56ccf66b-bsxxq 1/1 Running 10 99d
ouyang-mysql-7qqkh 1/1 Running 3 83d
ouyang-mysql-master-74wg2 1/1 Running 0 31d
ouyang-mysql-slave-h4r4m 1/1 Running 0 31d
[root@master-1 ~]# kubectl exec -ti mysql-mysql-7b56ccf66b-bsxxq bash
root@mysql-mysql-7b56ccf66b-bsxxq:/#
root@mysql-mysql-7b56ccf66b-bsxxq:/#
root@mysql-mysql-7b56ccf66b-bsxxq:/# mysql --version
mysql Ver 8.0.18 for Linux on x86_64 (MySQL Community Server - GPL)
连接数据库:
https://blog.csdn.net/qq_41538097/article/details/106905416
读取数据库配置:
global.GVA_VP = core.Viper()
未审批
通过审批
驳回