python
bing0008
这个作者很懒,什么都没留下…
展开
-
mysql ERROR 1045 (28000): Access denied for user ‘user‘ 解决方法
一、报错样式 1、通过mysql命令登录报错 mysql/bin/mysql -hxxx.xxx.xxx.xxx -P3306 -uuser -ppassword 报错 mysql: [Warning] Using a password on the command line interface can be insecure. ERROR 1045 (28000): Access denied for user 'user'@'XXX.XXX.XXX.XXX' (using password: Y原创 2020-11-12 17:09:05 · 1534 阅读 · 0 评论 -
后台守护进程使用python时间时踩的坑
后台守护进程用python使用time时踩的坑后台守护进程 使用python时间使用坑结论 后台守护进程 使用python时间使用坑 待引入包内容 ttime.py import time c = time.strftime('%Y%m%d', time.localtime()) print(c) 后台守护 changzhutest.py from ttime import c import time while True: print("timenow",time.strftime("原创 2020-08-14 09:08:32 · 188 阅读 · 0 评论 -
使用python2.7对redis库批量加list数据
使用脚本: 前期准备 python2.7 ; 及批量文件: # -*- coding:utf-8 -*- import redis NUM = 10000# execute every 10000 command def run(): redis_host = "xxx.xxx.xxx.xxx" redis_port = 6379 db_id =2 # 指定db passwd='test123' redis_cli = redis.StrictRedi...原创 2020-07-12 21:12:58 · 467 阅读 · 0 评论