How to prevent SQL injection?

Referring to owasp, this paper focuses on providing clear, simple and operable guidance to prevent SQL injection vulnerabilities in applications. Unfortunately, SQL injection attacks are common due to two factors: Significant prevalence of SQL injection vulnerabilities The attractiveness of the target (i.e. the database usually contains all ...

Added by Eiolon on Fri, 18 Feb 2022 19:48:38 +0200

Multiple data sources under spring mybatis

#Multiple data sources under spring mybatis Recently, I encountered the requirement optimization of separation of reading and writing in the project. Here I just record the implementation process, problems and some extensions (smart like me). The implementation method is some public schemes: * * overriding datalookcurrentdetail1 * * 2. Switc ...

Added by danman252 on Fri, 18 Feb 2022 19:44:56 +0200

[software implementation interview] MySQL and Oracle joint query and aggregate function interview summary

The second bullet in the series of software implementation Interview articles, the interview summary of MySQL and Oracle joint query and aggregate function. If you look at mysql, can't you have some oracle? In front of it, many companies have done many written test questions, and now there are few written test questions. How much ink do you hav ...

Added by bradgrafelman on Fri, 18 Feb 2022 17:13:20 +0200

Mysql | based on MyCat sub database and sub table, read-write separation, master-slave synchronization

preface This paper introduces the principle of master-slave synchronization and demonstrates the actual operation. Based on the above, this paper studies the separation of reading and writing based on mycat database and table MyCat Example architecture diagram: 192.168.43.110: database test01 and database test02 have student tables resp ...

Added by eludlow on Fri, 18 Feb 2022 16:23:19 +0200

Mybatis study notes

0. Case environment 0.1 case data initialization sql CREATE DATABASE /*!32312 IF NOT EXISTS*/`mybatis_db` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `mybatis_db`; DROP TABLE IF EXISTS `orders`; CREATE TABLE `orders` ( `id` int(11) NOT NULL AUTO_INCREMENT, `createtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMEST ...

Added by jaymc on Fri, 18 Feb 2022 10:35:45 +0200

Flinkcdc Hudi: full introduction to MySQL data entering the lake in real time III: explore and realize the high availability of FlinkCDC mysql master-slave database synchronization

Preface: Hudi series: Flinkcdc Hudi: introduction to MySQL data entering the lake in real time 1: preliminary test Flinkcdc Hudi: full introduction to MySQL data entering the lake in real time II: exceptions and solutions encountered during the integration of Hudi and Spark 1, Background In the production environment, mysql is generally eq ...

Added by rulian on Fri, 18 Feb 2022 06:00:15 +0200

PHPstorm operates mysql database and solves the garbled code problem of phpmyadmin

preface It can't be said that you have fully understood the logic and problems inside, but the methods you have mastered so far can make the view in browser output and phpmyadmin free of garbled code. Specific operation Create a table Worker after linking the database through php code <?php $mysql=mysqli_connect("localhost","root","12345 ...

Added by areid on Thu, 17 Feb 2022 23:01:38 +0200

Summary of Redis learning notes

1. Redis transaction 1.1 role of redis transaction Redis transaction is a separate isolation operation. All commands in the transaction will be serialized and executed sequentially (because of single thread + IO multiplexing). During the execution of the transaction, it will not be interrupted by the command request sent by other client ...

Added by gdure on Thu, 17 Feb 2022 22:48:32 +0200

Redis operation and maintenance - learning from scratch

1, Introduction to Redis Redis is an open-source SQL database developed based on C language for the underlying code. Redis runs and persists based on memory and adopts the storage form of key value (key value pair). It is an indispensable part of the current distributed architecture Advantages of Redis It has extremely high data reading ...

Added by coverman on Thu, 17 Feb 2022 22:36:49 +0200

Detailed examples of five common data types in Redis

Redis data types (5 common) typeImplementation principlestringStringhashHashMaphashLinkedListsetHashSetsorted_setTreeSet redis data storage format redis itself is a Map in which all data is stored in the form of key:value.Data type refers to the type of stored data, that is, the type of value part. The key part is always a string. 1.string ...

Added by brattt on Thu, 17 Feb 2022 18:35:48 +0200