Production environment database backup scheme

1, Introduction After the product goes online, our data is very important. It's not allowed to be lost. We should be well prepared. If one day is hacked or deleted maliciously, it will crash. So we need to do full backup and incremental backup for our online database regularly. For example, make incre ...

Posted by lauxanh on Sat, 27 Jun 2020 01:35:14 -0700

Introduction and use of systemctl command

Systemd program Systemd is actually a program used by Linux system to manage the system, which is used to replace the original init process (used to manage and start other service processes of the system). Now many Linux distributions have their own Systemd programs. systemctl command 1. Unit systemctl command is the most important command in ...

Posted by ramrod737 on Sat, 27 Jun 2020 01:33:42 -0700

Beauty of mybatis source code: 2.8. Parse the objectFactory element and configure the object creation factory of mybatis

Parse the objectFactory element and configure the object creation factory of mybatis In Mybatis, there are many operations to instantiate objects through reflection, such as converting JDBC operation results to specific instance objects based on reflection. For example, the following data are available: MYSQL data: Name Sex (sex) Age panda ...

Posted by gazoo on Fri, 26 Jun 2020 20:48:57 -0700

Triggers and views in MySQL

The keyword "delimiter" is used to declare the delimiter of SQL statement and tell mysql interpreter whether the command has ended and whether mysql can be executed. By default, delimiter is a semicolon;. In the command line client, if a line of commands ends with a semicolon, mysql will execu ...

Posted by danielrs1 on Fri, 26 Jun 2020 18:30:09 -0700

SQL Base Notebook 2 View Stored Procedure

  View CREATE/ALTER/DROP VIEW ViewName as SELECT(...) You can continue to create a view based on it, that is, you can place the previously created view as a table name in the select statement of the new view Format data using views (that is, reassemble and stitch fields) CREATE VIEW View_player_team AS SELECT CONCAT(player_name, '(' , t ...

Posted by Izzy1979 on Fri, 26 Jun 2020 09:58:46 -0700

MySQL -- DML (add, delete and modify) language

Preface: to every reader: Hello! My name is Changlon. I'm a runner who runs on the road of programming like you, hoping to change the world and improve your life with programming. First intention of writing article: convenient for review later, convenient for future interview, make more friends, exchan ...

Posted by eflopez on Fri, 26 Jun 2020 01:03:18 -0700

Design of universal interface for accessing c + + relational database (JSON-ORM c + +)

Re operate the old c + + business and get used to the usual database operation mode, so take the time to encapsulate a C + + version of JSON orm. Now it supports sqlit3 and mysql, and postgres is ready. Design ideas Our general ORM, the basic pattern is to want to break away from the database, almost all in the programming language level model, ...

Posted by thedarkwinter on Thu, 25 Jun 2020 22:42:57 -0700

Spring Boot 2.x basic tutorial: MyBatis multi data source configuration

Two days ago, we introduced Multi data source configuration of JdbcTemplate as well as Multi data source configuration of Spring Data JPA , let's talk about how to configure the multi data source scenario when using MyBatis. Add configuration for multiple data sources First, in the configuration file of ...

Posted by osti on Thu, 25 Jun 2020 19:19:18 -0700

How to use Jdbc and Servlet to operate Mysql database and write Android login server?

How to use Jdbc and Servlet to operate Mysql database and write Android login server? 1. Download and install Tomcat server 2. Open eclipse and choose Java EE mode 3. Configure Servers 1. Click on the blue word in the bottom configuration box (2) Select the corresponding versions of Apache and Tomcat in the server type (3) ...

Posted by itsgood on Thu, 25 Jun 2020 09:13:51 -0700

[docker installation and basic commands]

1, docker: container based Virtualization (hosting applications to application containers) implements an application level resource isolation and quota. What is a container?Container: lightweight Virtualization (sharing the same system kernel). The container is run by the container image.Advantages: h ...

Posted by mark123$ on Thu, 25 Jun 2020 05:08:49 -0700