Ansible installation and module management (the most complete operation, can follow
1, Ansible installation
Environmental preparation
Management end: CentOS 7-2 192.168.18.147Managed end 1: CentOS 7-3 192.168.18.128Managed end 2: CentOS 7-4 192.168.18.148
Management side:
[root@localhost ~]# systemctl stop firewalld.service
[root@localhost ~]# setenforce 0
[root@localhost ~]# yum install epel-release -y
[root@localhost ~]# ...
Posted by santhosh_89 on Mon, 03 Feb 2020 07:34:46 -0800
Transaction Delivery Properties for SpringBoot Series Tutorials
Transaction Delivery Properties for the 200202-SpringBoot series of tutorials
For mysql, there may be several main points of knowledge about transactions at the isolation level; in the Spring system, there is also a transfer property of knowledge point transactions that is equally important when using transactions. This article will focus on ...
Posted by andy666 on Sun, 02 Feb 2020 20:01:59 -0800
About Queries_per_sec performance counters
[Problem Description]
Queries_per_sec (QPS) is two important performance counter metrics for databases.We often require development to inform this parameter to evaluate a load on the database.The following code connects to the server to make a simple query:
using (MySqlConnection conn = new MySqlConnection())
{
conn.ConnectionString = "Database ...
Posted by Procode on Sun, 02 Feb 2020 18:49:06 -0800
Spring Road (39) - programmatic transaction management based on transaction template
background
The programmatic transaction management based on PlatformTransactionManater implemented in the previous article belongs to a very low-level encapsulation. In fact, the original JDBC transaction operation is encapsulated as an interface and then implemented by a specific implementation class ...
Posted by laide234 on Sun, 02 Feb 2020 06:34:52 -0800
Cannot truncate the table because it is referenced by the FOREIGN KEY constraint?
With MSSQL2005, can I truncate a table with foreign key constraints if I truncate the subtable first (the table with the primary key of the FK relationship)?
I know I can too
Use DELETE without where clause, then RESEED identity (or)
Delete FK, truncate the table, and recreate FK.
I don't think I can use any of the above options ...
Posted by mediabob on Sat, 01 Feb 2020 09:16:02 -0800
Building MySQL Replication Cluster High Availability Architecture Based on MHA
Introduction to MHA architecture
MHA is the abbreviation of Master High Availability. It is a relatively mature solution for MySQL high availability at present. Its core is a set of scripts written in perl language. It is an excellent set of high availability software for failover and master-slave promotion in MySQL high availability environme ...
Posted by xtopolis on Sat, 01 Feb 2020 08:52:44 -0800
springboot learning - integrate JdbcTemplate
12:59:22, February 1, 2020
The epidemic continues, disrupting many of my plans
It's also good to study at home
Introduction to JdbcTemplate
Spring encapsulates the operation of database deeply on jdbc. With spring's injection function, DataSource can be registered in JdbcTemplate.
The Jdbc ...
Posted by magaly on Fri, 31 Jan 2020 22:21:18 -0800
centos7 hadoop+hive installation
Prepare four virtual machines
Virtual Machine Installation
1.Create a new virtual machine
2.Click on Typical Installation(Recommend)
3.Select Chinese and click on your own partition
# Partition Configuration (JD Usage)
/boot 200M
swap 512M # Not enough native memory, swap
/ # root directory
4.Configu ...
Posted by Derek on Fri, 31 Jan 2020 20:33:17 -0800
Spring Boot + MyBatis quick start
I've learned Spring Boot these days, and I want to record it for review in the future. Spring Boot greatly simplifies the complexity of XML configuration in the past. A Web project can be built with a few simple lines of configuration, which greatly saves development time.
Environmental preparation
Eclipse
JDK 1.7
Maven
M ...
Posted by JP128 on Fri, 31 Jan 2020 13:32:39 -0800
JAVA program operation MYSQL database
Preface
Before learning to operate MYSQL database with JAVA program, we need to download and configure it Eclipse and jdk1.8 , and the tools most needed this time: MySQL database and JDBC driver
Download driver
jdbc 8.0.11 download website: https://dev.mysql.com/downloads/connector/j/
Load driver
Open eclipse and righ ...
Posted by adamata on Fri, 31 Jan 2020 10:38:20 -0800