ssh-keygen # 可以一路回车# 生成完成后,密钥对存储在用户目录下的.ssh文件夹内# Your identification has been saved in /home/fatpuffer/.ssh/id_rsa.# Your public key has been saved in /home/fatpuffer/.ssh/id_rsa.pub.
'''
Host 别名
HostName 远程服务器ip
User 远程服务器用户名
Port 22
'''
Host first-node
HostName first-node
User fatpuffer
Port 22
Host second-node
HostName second-node
User fatpuffer
Port 22
Host third-node
HostName third-node
User fatpuffer
Port 22
https://dev.mysql.com/doc/refman/8.0/en/sql-transactional-statements.html
13.3事务和锁定语句
13.3.1启动事务、提交和回滚语句
开启事务
begin
START TRANSACTION提交事务
COMMIT回滚事务
ROLLBACK查询自动提交
show SESSION VARIABLES where variable_name "…
https://dev.mysql.com/doc/refman/8.0/en/innodb-locking.html
本节讨论的所有锁都是在 InnoDB 引擎下
MySQL 实现行锁定主要使用共享锁和排他锁。也就是常说的读写锁。 A shared (S) lock permits the transaction that holds the lock to read a row. An exclusive (X) l…