摘要: https://cloud.tencent.com/developer/article/2165428 Linux-Redhat系统更改系统时区 [root@localhost ~]# date #查看本地时间 Thu May 19 23:41:32 EDT 2022 [root@localhost 阅读全文
posted @ 2024-03-25 17:12 忧伤恋上了快乐 阅读(8) 评论(0) 推荐(0) 编辑
摘要: 修改my.cnfvi /docker_data/mysql/conf/my.cnf[client]default-character-set=utf8mb4[mysql]default-character-set=utf8mb4[mysqld]character-set-server=utf8mb4 阅读全文
posted @ 2024-01-15 14:41 忧伤恋上了快乐 阅读(47) 评论(0) 推荐(0) 编辑
摘要: 1.下载mysql8镜像(版本根据自己选择:这里是8.0.20) docker pull mysql:8.0.20 2.启动镜像 docker run -p 3307:3306 --name mysql8 -e MYSQL_ROOT_PASSWORD=123456 -d mysql:8.0.20 这 阅读全文
posted @ 2024-01-15 09:56 忧伤恋上了快乐 阅读(21) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/ctypyb2002/article/details/106115691 阅读全文
posted @ 2023-09-06 10:19 忧伤恋上了快乐 阅读(79) 评论(0) 推荐(0) 编辑
摘要: WORK_DIR=$(cd $(dirname $0); pwd) bash 如何获取当前文件的绝对路径 WORK_DIR : 变量,后续可用; $(dirname $0) : 获取shell脚本所处的文件夹路径; cd $(dirname $0) : 切换到shell脚本所处的文件夹; cd $( 阅读全文
posted @ 2023-08-17 10:01 忧伤恋上了快乐 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 引用:https://xiaojin21cen.blog.csdn.net/?type=blog 1、随机数字 随机小数,小于0的数。rand() 随机函数 select rand() ; 浮点数。round() 四舍五入函数,保留2位。可用于金额。 select round(rand()*1000 阅读全文
posted @ 2023-06-16 09:26 忧伤恋上了快乐 阅读(0) 评论(0) 推荐(0) 编辑
摘要: SHOW VARIABLES LIKE 'auto_inc%'; 查看当前数据库的自增长设置。 SET @@auto_increment_increment=3 alter table `test`add id BIGINT; -- 为test表增加一个名称为id,类型为bigint的列. alte 阅读全文
posted @ 2023-05-22 15:08 忧伤恋上了快乐 阅读(265) 评论(0) 推荐(0) 编辑
摘要: 1.mycat支持2种配置; 1.1ZooKeeper 1.2本地加载xml方式,默认是本地加载XML方式启动 2.server.xml配置文件 2.1user标签 user标签主要定于登陆mycat的用户和权限 举例; <user> user name="liuyang"><property na 阅读全文
posted @ 2023-04-27 10:59 忧伤恋上了快乐 阅读(533) 评论(0) 推荐(0) 编辑
摘要: 1.表格1.1 添加表格添加表格很简单,只需要调用一下add_table()即可,返回一个Table对象,参数可以指定行、列、样式 from docx import Document doc = Document()# 添加一个5行3列的表格,样式是网格实线table = doc.add_table 阅读全文
posted @ 2023-04-17 15:09 忧伤恋上了快乐 阅读(1736) 评论(0) 推荐(0) 编辑
摘要: 免密登录命令:1.进入.ssh目录: cd ~/.ssh 2.生成一对密钥: ssh-keygen -t rsa 3.发送公钥: ssh-copy-id 192.168.xx.xxx 4.免密登录测试: ssh 192.168.xx.xxx 目录 一、免密登录原理 二、配置ssh 1.查看 .ssh 阅读全文
posted @ 2023-03-24 11:18 忧伤恋上了快乐 阅读(179) 评论(0) 推荐(0) 编辑