Advanced MySQL (SQL optimization, index optimization, locking mechanism, master-slave replication)
0 storage engine introduction
myisam storage: if the table does not have high transaction requirements and is mainly query and addition, we consider using myisam storage engine, such as posting table and reply table in bbs
Regular defragmentation is required (because the deleted data still exists): optimize table_ name;
InnoDB storage: ...
Added by Spikey on Tue, 25 Jan 2022 01:19:41 +0200
Linux(CentOS)7 Building LAMP environment | CSDN creation punch in
I What is LAMP?
LAMP environment is an abbreviation of (Linux+Apache+ MySQL+PHP). It is a group of open source software commonly used to build dynamic websites or servers. At the same time, LNMP(Linux+Nginx+ MySQL+PHP) environment architecture is most contacted. Different from it, Apache is used as web page service and Nginx is used as web pag ...
Added by Loki on Mon, 24 Jan 2022 23:56:21 +0200
Database learning exchange 1
1.1 command line startup service
net start service name
net stop service name
However, the dos window must be opened as an administrator
1.2 connecting to the server
local local
host host -h
username user name -u
password password -p
port port -P(Capitalize)
Database connection succeeded dos commands do not need semicolons, ...
Added by greenber on Mon, 24 Jan 2022 23:43:37 +0200
mysql -- a common data type
catalogue
1, Integer
2, Decimals
3, Character type
4, Date type
Numerical type integer decimalFixed point numberFloating point numbercharacterShorter textchar,varcharLong texttext, blob (long binary data)Date type
1, Integer
Classification:
tinyintsmallintmediumintint/integerbigint1 byte2348
characteristic:
If you do not ...
Added by digitalecartoons on Mon, 24 Jan 2022 23:32:06 +0200
The process of installing mysql 5.7.34 on the server is not 8.0.25
preface
This is my first attempt to install mysql on the server. I have recorded and summarized the problems encountered. I hope I can prompt people who encounter the same problems. If I can't solve your problem, continue to refuel, and I will be able to find a solution. Du Niang is forced Here will be a blog for reference. Thank you for sh ...
Added by LarsLai on Mon, 24 Jan 2022 07:42:34 +0200
31, Partition table
1, What is partition ###### 1 and what is partition table
Partitioned table is to divide the data of the same table into multiple storage locations according to some rules. Partitioned storage of data improves the performance of the database. The data to be stored is physically multiple files, but logically it is still a table. Any operation o ...
Added by dcallstar51 on Mon, 24 Jan 2022 07:29:26 +0200
Redis quick start, an introduction to the system, learn to get a raise
1. Explanation of NoSQL (non relational database)
Why use Nosql
Big data age - > springboot + springcloud
The beautiful era of stand-alone Mysql!
In the 1990s, the number of visits to basic websites was small, and only a single database was enough.
Bottleneck of the whole website:
1. If the amount of data is too large, one m ...
Added by begeiste on Mon, 24 Jan 2022 04:25:28 +0200
Implement front-end web page production based on crawler data (learn a lot!)
catalogue
preface
On the effect!
User registration and login page
Retrieve team information
Chart making:
The histogram shows the winning rate information of each team:
The pie chart shows the number of games played by each team
The line chart shows the average score of each team
Implementation of administrator operation
epilogue
...
Added by bsprogs on Mon, 24 Jan 2022 01:05:45 +0200
[giant's shoulder] 8 scenarios of Spring transaction failure
Use Spring's @ Transactional annotation to control the scenarios in which transactions do not take effect
I don't know if my friends have such an experience. When they are happy to write business code, suddenly the transaction in a method seems to fail. Then, when debug ging tracks the code, it is found that after the execution of the first st ...
Added by gizzmo on Sun, 23 Jan 2022 22:30:02 +0200
MySQL index and execution plan 2
1. Index type
BTREE : b-tree , b+tree , b*tree
RTREE
FULLTExT
HASH
2. Differences and relations between clustered index and auxiliary index
difference:
Generally, the primary key is selected to generate the cluster index. There can only be one table. If there is no primary key, the unique key is selected, and the hidden ...
Added by king.oslo on Sun, 23 Jan 2022 17:39:23 +0200