Remember these 9 distributed ID generation methods
1, Why use distributed ID S?
Before talking about the specific implementation of distributed ID, let's briefly analyze why we use distributed ID? What characteristics should distributed IDS meet?
1. What is distributed ID?
Take MySQL database as an example:
When our business data volume is small, single database and single table can fully s ...
Posted by phpBever on Sun, 30 Jan 2022 02:19:23 +0100
Use proxy to achieve intranet penetration, configure intranet and Intranet databases to synchronize data with each other
1, Intranet penetration using proxy
prepare
Tutorial reference address: https://snail007.github.io/goproxy/manual/zh/#/
git address of proxy software: https://github.com/snail007/goproxy/releases
Prepare two servers:
One with fixed IP External network server, for example: 180.76.123.37
A server in Intranet environment, for example: 192 ...
Posted by mashnote on Sun, 30 Jan 2022 00:19:16 +0100
SpringBoot AOP configuring global transactions
The emergence of SpringBoot makes it very easy to use transactions in projects. There are two ways to use them, which are suitable for annotation transactions (declarative transaction management) of small projects and global transactions of large projects.
1. Annotation transactions. (secondary)
There are only two steps to annotate transactio ...
Posted by Chris-the dude on Sat, 29 Jan 2022 18:12:15 +0100
Notes on website development - ([Django] html form storage Mysql method)
1, Preparation link
Under development, no open source project, the details are inconvenient to show, only for Development notes. Environmental Science:
python3.8
django4.0
Mysql
compiler:
pycharm
sqlyog
Preliminary preparation: Notes on website development - (Introduction to django)
2, Front end html file
<form action="/now/use ...
Posted by amrigo on Sat, 29 Jan 2022 14:53:16 +0100
Application of MySQl database
1, Create
1. Create database
View the original database of the system
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| performance_schema |
| sys |
+--------------------+
4 rows in set (0.00 sec)
Create your own database
mysql& ...
Posted by rinteractive on Sat, 29 Jan 2022 09:30:02 +0100
How to update data in Clickhouse
[Abstract] as an OLAP database, Clickhouse has very limited support for transactions. This paper mainly introduces how to update and delete Clickhouse data through replacing mergetree.
As an OLAP database, Clickhouse has very limited support for transactions. Clickhouse provides the movement operation (through the ALTER TABLE statement) to UPD ...
Posted by SnowControl on Sat, 29 Jan 2022 07:30:10 +0100
mysqldump usage specification
Database is very important. Without backup, data loss can only run away. So make a backup!
1, Tool introduction
mysql dump is a logical backup tool that comes with mysql.
Its backup principle is to connect to mysql database through protocol, query the data to be backed up, and convert the queried data into corresponding insert statements. ...
Posted by fenway on Sat, 29 Jan 2022 01:33:43 +0100
MySQL MMM high availability cluster
1, Overview of MySQL MMM cluster technology
summary:
MMM (Master Master replication manager for mysql) is a script program that supports dual master failover and dual master daily management. MMM is developed in Perl and is mainly used to monitor and manage mysql master master replication. It can be said to be mysql master replication mana ...
Posted by -Mike- on Fri, 28 Jan 2022 23:33:09 +0100
Linux mysql5.7 installation - super detailed
Linux mysql5.7 installation - super detailed
Step: the installation of this article is version 5.7
Step reference video - ruoze explanation
The installation steps should be roughly described below during the interview
check whether Mysql is installed or running in the systemdownload mysql source package and decompressionCreate administrativ ...
Posted by bazza84 on Fri, 28 Jan 2022 22:13:49 +0100
PHP interactive MySQL realizes login and registration function
catalogue
1, Basic knowledge
Establish and close the connection with MySQL server
1) Connect to the specified mysql server
2) Prompt in case of connection error
3) Set default character encoding
4) Select a specific database: mysqli_select_db ( $link , string $dbname);
5) Close the connection with mysql server
2, Realize login registr ...
Posted by midgar777 on Fri, 28 Jan 2022 19:58:28 +0100