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 · 1587 阅读 · 0 评论 -
后台守护进程使用python时间时踩的坑
后台守护进程用python使用time时踩的坑后台守护进程 使用python时间使用坑结论后台守护进程 使用python时间使用坑待引入包内容 ttime.pyimport timec = time.strftime('%Y%m%d', time.localtime())print(c)后台守护 changzhutest.pyfrom ttime import cimport timewhile True: print("timenow",time.strftime("原创 2020-08-14 09:08:32 · 193 阅读 · 0 评论 -
使用python2.7对redis库批量加list数据
使用脚本:前期准备 python2.7 ;及批量文件:# -*- coding:utf-8 -*-import redisNUM = 10000# execute every 10000 commanddef 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 · 486 阅读 · 0 评论