Mysql
[Error|Mysql|Pymysql|sqlalchemy]TypeError: can’t compare datetime.datetime to unicode|
# Error-TypeError: can’t compare datetime.datetime to unicode ## 环境 – Linux – Python2.7 ## 事实 在对Mysql的表进行数据同步,两个表结构几乎一样,使 阅读更多…
# Error-TypeError: can’t compare datetime.datetime to unicode ## 环境 – Linux – Python2.7 ## 事实 在对Mysql的表进行数据同步,两个表结构几乎一样,使 阅读更多…
直接安装virtualenv 会报错 SyntexError: __future__ feature annotations is not defined 需要根据报错一点点调整依赖包的版本 pip install platformdirs==2.4 filelock==3.4 阅读更多…
背景: 实际集群构建后,发现coredns服务不能正常提供服务。 现象: 解决方式: 节点重建命令 kubeadm reset systemctl stop kubelet systemctl stop docker rm -rf /var/lib/cni/ rm -rf /va 阅读更多…
1. wget https://www.python.org/ftp/python/3.6.2/Python-3.6.2.tgz 2. apt install gcc patch libffi-dev python-dev ncurses-dev tk-dev gdbm-dev 阅读更多…
有时候我们需要对sphinx生成的html文档的侧边栏,进行自定义设置。 设置的方法就是: 自己新建一个template文件,如 addtoc.html 然后在conf.py 这个sphinx设置文件里面,配置主题选项 html_sidebars = { ‘** 阅读更多…
需要关闭保护模式 CONFIG SET protected-mode no 需要设置持久化 config set stop-writes-on-bgsave-error no 需要增加最大连接数量 config set maxclients 100000 关闭持久化 阅读更多…
错误信息: MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set 阅读更多…
驱动官方网址: http://chromedriver.storage.googleapis.com/index.html 国内驱动镜像: http://npm.taobao.org/mirrors/chromedriver/ chrome驱动版本对应信息: https://b 阅读更多…
采用 systemctl 命令来进行开机启动项管理。 开启某一服务的开机启动 systemctl enable redis-server 关闭某一服务的开机启动 systemctl disable redis-server 启动某服务 systemctl start redi 阅读更多…
为了提高开发效率,有时候我们需要在创建新文件时,生成一个模板,包含一些固定代码。 以py文件为例,我们可以在pycharm中进行设置。 设置方式为: file settings editor file and code templates 阅读更多…