摘要: 1.Redis安装 1.1.Linux环境安装Redis step-1:下载Redis 进入官网找到下载地址 https://redis.io/download wget https://github.com/redis/redis/archive/7.0.0.tar.gz step-2:解包 ta 阅读全文
posted @ 2022-05-25 15:53 葛老头 阅读(1195) 评论(0) 推荐(3) 编辑
摘要: 数据库读取图片 1 import mysql.connector.pooling 2 import os 3 4 __config = { 5 'host': 'localhost', 6 'port': 3306, 7 'user': 'root', 8 'password': '123456', 阅读全文
posted @ 2022-05-25 10:52 葛老头 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 1.前置知识及条件 1.1.数据库脚本 SET FOREIGN_KEY_CHECKS=0; -- -- Table structure for t_news -- DROP TABLE IF EXISTS `t_news`; CREATE TABLE `t_news` ( `id` int(10) 阅读全文
posted @ 2022-05-25 10:50 葛老头 阅读(287) 评论(0) 推荐(0) 编辑