[note] MySQL Basics
1. Get to know MySQL
preface
Data needs to be stored. Large companies will go to IOE for self research!
Database is the core existence in the software system -- DBA database administrator
Java EE: Enterprise Java Web Development
Front end (page: display, data)
Background (connection point: connect database JDBC, link the front end (cont ...
Posted by kannjihyun on Wed, 06 Oct 2021 03:44:20 +0200
mybatis_plus -- CRUD, extension, plug-in
1. Mapper CRUD interface
The universal CRUD encapsulates the BaseMapper (opens new window) interface, which automatically resolves the entity table relationship mapping when Mybatis plus starts, and transforms it into the Mybatis internal object injection containerGeneric T is any entity objectWrapper updateWrapper entity object encapsulat ...
Posted by Q on Wed, 06 Oct 2021 01:46:06 +0200
Mybatis study notes
Mybatis study notes
This article is to watch the UP master crazy God of station B say about Video of Mybatis explanation , reference Official documents of Mybatis And CSDN bloggers Black heart white lotus Personal Mybatis notes sorted out by relevant articles. Due to the author's limited ability, there are inevitable mistakes in the article. Y ...
Posted by Isityou on Mon, 04 Oct 2021 23:05:02 +0200
MysqlExplain explains in detail when the query may use the index union index action rule id select_type table type possible_keys key key_len ref Extra
preface
sql tuning is very common in actual development, especially when the server is under pressure, it is necessary to optimize the time-consuming and commonly used sql to improve the high availability of the server. The explain tool will be used during tuning. This chapter will use explain to see how powerful it is.
1, EXPLAIN
Us ...
Posted by dreado on Mon, 04 Oct 2021 02:35:58 +0200
MySQL Data Add Statement
MySQL Data Add Statement
After the database and tables have been created successfully, you need to insert data into the tables in the database. In MySQL, you can use INSERT statements to insert one or more rows of tuple data into tables that already exist in the database.
Basic Grammar
The INSERT statement has two syntax forms, INSERT ...
Posted by discostudio on Sun, 03 Oct 2021 19:01:33 +0200
How to collect MySQL MHA deployment and running status information through Python
1, Background introduction When the number of MySQL database instances of the group reaches 2000 + and the scale of MHA cluster reaches hundreds, the timely and efficient management of MHA is a challenge that DBA s must face. MHA cluster node information and operation status are the basis of management. This section mainly introduces how to col ...
Posted by jmcc on Sun, 03 Oct 2021 02:20:59 +0200
MyBatis study notes
MyBatis
1, Framework overview
1. Three tier architecture
Interface layer: deal with users, accept user request parameters and display processing results. (jsp,html,servlet)Business logic layer: accept the data transmitted by the interface layer, calculate logic, call the database and obtain data.Data access layer: it is to access the datab ...
Posted by etnastyles on Sun, 03 Oct 2021 01:15:55 +0200
MySQL SQL optimization explain analysis
explain analysis execution plan
You can use the EXPLAIN or DESC command to obtain information about how MySQL executes the SELECT statement, including how tables are connected and the order of connection during the execution of the SELECT statement.
Execution plan of query SQL statement:
explain select * from tb_item where id = 1;
...
Posted by xtian on Fri, 01 Oct 2021 20:48:40 +0200
Redis distributed lock, you hit me after reading it
Simple redis distributed lock
Locking:
set key my_random_value NX PX 30000
This command is better than setnx because the expiration time can be set at the same time. If the expiration time is not set, the application hangs and cannot be unlocked, so it is locked all the time.
Unlock:
if redis.call("get",KEYS[1])==ARGV[1] then
ret ...
Posted by dokueki@gmail.com on Fri, 01 Oct 2021 03:33:21 +0200
RHCSA-A17. Set password expiration time for new user
Red hat RHCE exam am - RHCSA (RH134)
serverb.example.com task
17. Set the expiration time of new user password
Task requirements
When creating a new user, the default password policy is set to expire after 20 days.
Complete step
Find login file cat /etc/login.defsAdjust the password expiration time in about 25 lines. The default is 99999 ...
Posted by wildteen88 on Fri, 01 Oct 2021 02:02:54 +0200