如果忘记mysql的密码 修改配置文件跳过密码直接登录 在[mysqld]下面添加 vim /etc/my.cnf skip-grant-tablses 重启mysql服务 service mysqld restart /etc/rc.d/init.d/mysqld restart 登录mysql ...
分类:
数据库 时间:
2021-03-02 12:39:27
阅读次数:
0
# 在与 settings.py 同级目录下的 __init__.py 中引入模块和进行配置 import pymysql pymysql.install_as_MySQLdb() ...
分类:
数据库 时间:
2021-03-01 13:15:26
阅读次数:
0
git记录 初始化: git version //查看git版本 git init //初始化仓库 cd 路径 //改变路径,windows命令 touch 文件名 //创建文件,windows命令 配置用户: git config --global user.name '用户名' git conf ...
分类:
其他好文 时间:
2021-02-27 13:31:46
阅读次数:
0
django后端解决跨域方式一Middleware 中间介实现跨域过程 1、新建中间介包 #mkidr middleware #touch middleware/__init.py__ #vim middleware/crossdomainxhr.py from django import http ...
分类:
其他好文 时间:
2021-02-26 12:57:56
阅读次数:
0
[root@localhost logs]# tail -100f error.log ngx_http_fastdfs_process_init pid=11255 [2021-02-24 19:11:20] ERROR - file: ../common/fdfs_http_shared.c, ...
分类:
其他好文 时间:
2021-02-26 12:54:25
阅读次数:
0
引用原链接:https://www.cnblogs.com/tp1226/p/8453854.html 我们经常在python的模块目录中会看到 "__init__.py" 这个文件,那么它到底有什么作用呢? 1. 标识该目录是一个python的模块包(module package) 如果你是使用p ...
分类:
编程语言 时间:
2021-02-25 11:58:33
阅读次数:
0
prepare_kernel_cred - Prepare a set of credentials for a kernel service 使用指定进程的 real_cred 去构造一个新的 cred,不是引用,不是引用,不是引用,而是创建一个新的 cred 源码版本:Linux Kernel ...
分类:
系统相关 时间:
2021-02-24 13:11:59
阅读次数:
0
0.介绍 Open-source job scheduling system for .NET Quartz.net 是调度任务框架,我们可以用来定时发送邮件、定时处理邮件、定时统计分析数据、定时监控... 本文介绍Quartz.net的简单使用 1. 参考资料 官方Doc https://www. ...
分类:
Web程序 时间:
2021-02-23 14:35:15
阅读次数:
0
import sqlite3 class SqliteUtil(): def __init__(self, file): # 连接到 SQlite数据库 # 数据库文件是 api_test.s3db,不存在,则自动创建 self.conn = sqlite3.connect('api_test.s3 ...
分类:
数据库 时间:
2021-02-23 14:22:09
阅读次数:
0
背景 开机首先加载bootloader,由bootloader启动kernel,然后运行init程序,有init启动Zygote,Zygote进程启动SystemServ进程,在SystemServer进程启动系统服务:PMS,AMS等,最后在AMS中启动Launcher ,此时整个Android系 ...
分类:
移动开发 时间:
2021-02-23 14:05:41
阅读次数:
0