mysql master-slave dual master configuration

mysql dual primary configuration mysql dual masters are actually synchronous and subordinate to each other. Any one can perform the insert action The production environment is used very little, because there are still concerns about data consistency. The production environment is generally enough The configuration of 172.19.132.121 starts ...

Posted by misterph on Sat, 02 Nov 2019 08:19:58 +0100

Discue forum of LNMP architecture

LNMP architecture LNMP platform is the combined architecture of Linux, Nginx, MySQL and PHP. It requires Linux server, MySQL server and PHP parsing environment Component component Linux is a kind of Unix computer operating system, which is the most popular free operating system. Nginx is a high-performance HTTP and reverse proxy server. Mysql ...

Posted by sampledformat on Sat, 02 Nov 2019 06:51:53 +0100

MySQL? Reference manual (counting line)

Counting row A database is often used to answer "how often does a certain type of data appear in a table?" The problem. For example, you may want to know how many pets you have, or how many pets each owner has, or you may want to conduct various types of census operations on your animals. Calculate the total number of animals you own ...

Posted by joel danny on Thu, 31 Oct 2019 20:29:57 +0100

Partial function and DBUtils for getting started with Flask

Last article > Message flash, request extension, middleware, blueprint and context management for the introduction to Flask (1) Supplement 1. Partial function #!/usr/bin/env python # coding:utf-8 import functools def fun(a, b): print(a, b) new_fun = functools.partial(fun, "aaa") new ...

Posted by michalurban on Thu, 31 Oct 2019 15:22:09 +0100

flowable learning exclusive gateway

I. deployment Designer 1. Put flowable-idm.war and flowable-modeler.war into the webapps directory of tomcat, and then start Tomcat. 2. Access in browser http://localhost:8080/flowable-modeler , user name / password: admin/test login, save and export the file after designing the process. Two code 1 create a process engine and deploy a pro ...

Posted by Enlightened on Wed, 30 Oct 2019 07:56:27 +0100

nodejs crawler http, cheerio, mysql module

nodejs related modules Get web content (httprequestsuperior, etc.) Filter web information (cheerio) Output or store information (consolesmongodbmysql, etc.) 1. Use the request module to obtain the web page content var request = require('request'); // Read the content of http://cnodejs.org/ through GET request request('http://cnodejs.org ...

Posted by quikone on Tue, 29 Oct 2019 20:27:51 +0100

Mybaits primary key value updating

Article directory Mybaits primary key value updating Return the primary key value generated by the current session (supported by MySQL and Oracle) Test it. You can write back the primary key value by setting the attribute. The principle is unknown (only supported by MySQL) Test it. Mybaits pri ...

Posted by ShadowIce on Tue, 29 Oct 2019 19:17:05 +0100

Don't let your microservice run naked anymore. Based on Spring Session & Spring Security microservice permission control

Microservice architecture Gateway: route the user's request to the specified service and forward the Session information contained in the front-end Cookie; User service: user login Authentication, user authorization, and Redis Session Management Other services: rely on user information in Redis for interface request verification Structure d ...

Posted by spudly on Tue, 29 Oct 2019 17:18:57 +0100

V. automatic assembly of Spring

Spring auto assembly Spring makes use of dependency injection (DI) to complete the assignment of the dependencies of various components in the IOC container. [1]@Autowired @Autowired annotation, which can annotate class member variables, methods and constructors to complete the work of automatic assembly. Use @ Autowired to eliminate the set an ...

Posted by josaho on Mon, 28 Oct 2019 14:41:35 +0100

Mybatis plus learning and CRUD cases

Understanding mybatis plus describe MyBatis plus (MP for short) is an enhancement tool of MyBatis. Based on MyBatis, only enhancements are made and no changes are made. It is generated to simplify development and improve efficiency. Vision achieved Our vision is to become the best partner of MyBat ...

Posted by Brunda on Sun, 27 Oct 2019 11:18:41 +0100