今天用jdbc连接MySQL 怎么连接都是Communications link failure,网上查了一圈资料,基本都是mysql﹥ show global variables like 'wait_timeout'; wait_timeout的设置问题,按照他们的改了后,还是failure,我 ...
分类:
数据库 时间:
2020-07-28 22:13:05
阅读次数:
80
import json str = '{"status":"500","data":null,"time":1595921796,"info":"测试测试"}' # 字符串转换为JSON格式 str_json = json.loads(str) # 格式化输出JSON # sort_keys:是否按 ...
分类:
编程语言 时间:
2020-07-28 16:53:32
阅读次数:
74
# 查看时区 show variables like '%time_zone%'; # 设置全局 set global time_zone='+8:00'; # 设置当前会话 set time_zone='+8:00'; # 立即生效 flush privileges; UTC是协调世界时(Univ ...
分类:
数据库 时间:
2020-07-28 14:43:56
阅读次数:
146
3.1 查看SQL执行频率 MySQL 客户端连接成功后,通过 show [session|global] status 命令可以提供服务器状态信息。show [session|global] status 可以根据需要加上参数“session”或者“global”来显示 session 级(当前连 ...
分类:
数据库 时间:
2020-07-28 14:42:06
阅读次数:
109
安装12-0-0版本并进行汉化后,开始创建其他组用户。使用其他用户登陆页面时候出现500错误 首先查看gitlab运行状态,发现并无异常 [root@gitlab ~]# gitlab-ctl status 查网上资料得知,GitLab发现报500错误,大意为DB数据关系错误,需要升级数据库关系。 ...
分类:
其他好文 时间:
2020-07-28 14:41:15
阅读次数:
186
:将每行输入的数字转换为十进制,然后预处理出所有满足题意的状态并存储于 sta ,再处理出单独一行时候的方案数并存储于 dp1,sta 枚举第 i 行的状态,判断第 j = i-1行的状态,并更新dpi , j ,最后累和即可 #include <bits/stdc++.h> using names ...
分类:
其他好文 时间:
2020-07-28 14:10:58
阅读次数:
62
git 常用命令 git add * 预提交 git commit -m '描述' 提交 git init 创建仓库 git status 查看当前是否有文件待提交 gik 以图形界面显示仓库及记录 git commit --amend 覆盖上一次提交 ...
分类:
其他好文 时间:
2020-07-28 13:55:56
阅读次数:
49
round_up.cpp内容如下: #include <iostream> using namespace std; const int kAlign = 8; // kAlign show be powers of 2, say 2, 4 ,8, 16, 32, ... const int kAl ...
分类:
其他好文 时间:
2020-07-28 13:51:52
阅读次数:
100
前言 在发生故障切换后,经常遇到的问题就是同步报错,下面是最近收集的报错信息。 记录删除失败 在master上删除一条记录,而slave上找不到 Last_SQL_Error: Could not execute Delete_rows event on table hcy.t1; Can't fi ...
分类:
数据库 时间:
2020-07-28 10:02:24
阅读次数:
103
主机: master:192.168.199.231 slave:192.168.199.231 maste和slave都安装mariadb yum install mariadb mariadb-server systemctl start mariadb #启动mariadb systemctl ...
分类:
数据库 时间:
2020-07-28 00:24:02
阅读次数:
78