摘要: validate_password_policy决定密码的验证策略,默认等级为MEDIUM(中等),可通过以下命令修改为LOW(低) set global validate_password_policy=0; 密码的长度是由validate_password_length决定的,但是可以通过以下命 阅读全文
posted @ 2021-01-08 23:11 anobscureretreat 阅读(113) 评论(0) 推荐(0) 编辑
摘要: code vi /etc/my.cnf 1.找不到初始密码可以在my.ini中[mysqld] 添加: skip-grant-tables 2.修改MySQL数据库配置文件无密码登录后,修改密码报错: ERROR 1290 (HY000): The MySQL server is running w 阅读全文
posted @ 2021-01-08 23:02 anobscureretreat 阅读(1098) 评论(0) 推荐(0) 编辑
摘要: code grep 'temporary password' /var/log/mysqld.log 输出 [root@xxx ~]# grep 'temporary password' /var/log/mysqld.log 2019-09-28T17:13:20.357871Z 1 [Note] 阅读全文
posted @ 2021-01-08 22:30 anobscureretreat 阅读(2551) 评论(0) 推荐(0) 编辑
摘要: code [root@xxx ~]# vi /etc/my.cnf 在[mysqld]中添加 skip-grant-tables 例如: [mysqld] skip-grant-tables datadir=/var/lib/mysql socket=/var/lib/mysql/mysql.soc 阅读全文
posted @ 2021-01-08 21:35 anobscureretreat 阅读(79) 评论(0) 推荐(0) 编辑
摘要: code import datetime t=datetime.datetime.now() #当前日期 d1 =t.strftime('%Y-%m-%d %H:%M:%S') #7天后 d2=(t+datetime.timedelta(days=7)).strftime("%Y-%m-%d %H: 阅读全文
posted @ 2021-01-08 17:23 anobscureretreat 阅读(893) 评论(0) 推荐(0) 编辑
摘要: code import random import datetime import os class sfz: def __init__(self): self.fileName=os.path.join(os.path.dirname(os.path.abspath(__file__)),"are 阅读全文
posted @ 2021-01-08 16:54 anobscureretreat 阅读(1) 评论(0) 推荐(0) 编辑
摘要: code import time import datetime import random #13位时间戳 temp=time.time() timestamp=int(round(temp*1000)) str_timestamp=str(timestamp) t=datetime.dateti 阅读全文
posted @ 2021-01-08 16:52 anobscureretreat 阅读(592) 评论(0) 推荐(0) 编辑
摘要: 将requests模块卸载重新安装即可 阅读全文
posted @ 2021-01-08 10:29 anobscureretreat 阅读(1752) 评论(1) 推荐(0) 编辑