db = pymysql.connect(host="localhost", port=3306, user="root", passwd="xxx", db="stu_info")cursor = db.cursor(cursor=pymysql.cursors.DictCursor)cursor ...
分类:
数据库 时间:
2021-06-07 20:09:12
阅读次数:
0
PyMysql连接数据库 防止sql注入 import pymysql ? ? def insertsql(): # 建立连接 connection_sql = pymysql.connect( host='localhost', port=3306, user='root', password=' ...
分类:
数据库 时间:
2021-06-07 20:05:01
阅读次数:
0
安装php-rdkafka 扩展 ***先安装librdkafka >>>源码方式安装 git clone https://github.com/edenhill/librdkafka librdkafka-master.zip unzip librdkafka-master.zip cd libr ...
分类:
Web程序 时间:
2021-06-07 19:51:44
阅读次数:
0
配置环境:gerrit 192.168.1.100gitlab 192.168.1.1011.创建秘钥 [root@gerrit ~]# ssh-keygen -m PEM -t rsa 2.添加hosts 解析 [root@gerrit ~]#echo "192.168.1.101 gitlab" ...
分类:
其他好文 时间:
2021-06-06 19:34:13
阅读次数:
0
部署服务器(nginx+mysql+javaJdk) 使用密钥登陆服务器 先生成密匙并存储到本地。 找到您下载的私钥所在目录,如:/root/xxx.pem。 说明 xxx.pem即为您的私钥文件,下同。 使用以下命令修改私钥文件的属性:chmod 400 xxx.pem。 使用SSH命令连接至实例 ...
分类:
数据库 时间:
2021-06-06 18:59:40
阅读次数:
0
IP地址的设置 在配置网络之前我们先要知道centos的网卡名称是什么,centos7不再使用 ifconfig 命令,可通过命令 ip addr 查看,如图,网卡名为ens32,是没有IP地址的 动态IP 修改网卡配置文件 vi /etc/sysconfig/network-scripts/ifc ...
分类:
其他好文 时间:
2021-06-05 17:52:05
阅读次数:
0
linux防火墙使用以及配置 Centos 7 firewall : 1、firewalld的基本使用 启动: systemctl start firewalld 关闭: systemctl stop firewalld 查看状态: systemctl status firewalld 开机禁用 : ...
分类:
系统相关 时间:
2021-06-04 19:47:34
阅读次数:
0
1、主机防护软件的安装路径 命令:wmic /namespace:\\root\securitycenter2 path antivirusproduct get displayname,productstate,pathtosignedproductexe 2、将wmic命令和findstr命令 ...
分类:
其他好文 时间:
2021-06-04 19:16:45
阅读次数:
0
Barefoot Networks P4 Studio Build Tool P4 Studio Build is a tool that helps a user to install dependencies, build and install all the required compone ...
分类:
其他好文 时间:
2021-06-04 19:14:12
阅读次数:
0
package main import ( "fmt" "gorm.io/driver/mysql" "gorm.io/gorm" "time" ) type User struct { ID int Name string CreatedTime time.Time } func main() { ...
分类:
其他好文 时间:
2021-06-04 19:06:12
阅读次数:
0