日志 undo log(回滚) 保存了事务发生之前的数据的一个版本,可以用于回滚,同时可以提供多版本并发控制下的读(MVCC),也即非锁定读 redo log(持久性) 重做日志是在事务开始之后逐步写入重做日志文件,而不一定是事务提交才写入重做日志。确保事务的持久性 存储引擎 InnoDB 支持事务 ...
分类:
数据库 时间:
2021-01-19 12:08:22
阅读次数:
0
方法一: Set NoCount On if exists(select * from tempdb..sysobjects where id=object_id('tempdb..##tempEANReport'))Begin drop table ##tempEANReportEndCreate ...
分类:
数据库 时间:
2021-01-19 12:01:00
阅读次数:
0
ssh公钥生成 ssh-keygen 设置邮箱账号 git config --global user.email "you@example.com" 设置码云昵称 git config --global user.name "Your Name" ...
分类:
其他好文 时间:
2021-01-19 11:59:24
阅读次数:
0
环境变量设置 设置root用户的密码 端口映射 处理用户远程连接登录异常 create user 'taishi'@'%' identified by 'aransfar@123'; grant all privileges on *.* to 'taishi'@'%' with grant opt ...
分类:
数据库 时间:
2021-01-19 11:46:37
阅读次数:
0
INSERT IGNORE 与INSERT INTO的区别就是INSERT IGNORE会忽略数据库中已经存在 的数据,如果数据库没有数据,就插入新的数据,如果有数据的话就跳过这条数据。这样就可以保留数据库中已经存在数据,达到在间隙中插入数据的目的。 eg: insert ignore into t ...
分类:
其他好文 时间:
2021-01-19 11:46:25
阅读次数:
0
1. 公司禁用了 python 我的主业是桌面开发,偶尔也需要搞搞数据和算法。最近在用 python 处理一些工作,正搞得热火朝天,突然 python 就不能用了,一查记录原来是 IT 管理员禁止我使用 python。 不清楚为啥 IT 管理员会盯上 python,总之先提交了解封的需求。在等 IT ...
分类:
编程语言 时间:
2021-01-19 11:46:08
阅读次数:
0
1. 配置双主: 双机名 win89.inno.com win88.inno.com 准备账号 SET SQL_LOG_BIN=0; set password for 'root'@'localhost'='123456'; grant all privileges on *.* to root@' ...
分类:
数据库 时间:
2021-01-18 11:43:38
阅读次数:
0
# 先定义dataframe各列的数据类型 from pyspark.sql.types import *schema = StructType([ StructField("a", NullType(), True), StructField("b", AtomicType(), True), S ...
分类:
其他好文 时间:
2021-01-18 11:29:36
阅读次数:
0
package test;import java.sql.*;public class retrieve { public static void main(String[] args) { try { Class.forName("com.mysql.jdbc.Driver"); } catch ...
分类:
数据库 时间:
2021-01-18 11:27:02
阅读次数:
0
一、EXPLAIN 做MySQL优化,我们要善用 EXPLAIN 查看SQL执行计划。 下面来个简单的示例,标注(1,2,3,4,5)我们要重点关注的数据 type列,连接类型。一个好的sql语句至少要达到range级别。杜绝出现all级别 key列,使用到的索引名。如果没有选择索引,值是NULL。 ...
分类:
数据库 时间:
2021-01-18 11:25:16
阅读次数:
0