2024年12月5日

Mysql基础——主从MySQL手动同步

摘要: mysql 主从数据同步失败手动同步数据的方法 进入master执行 1、锁表 flush tables with read lock; 2、导出备份数据 mysqldump -u root -p test1 > /tmp/mysql.sql 3、查看主库状态记录偏移量position的值 show 阅读全文

posted @ 2024-12-05 10:50 gkhost 阅读(47) 评论(0) 推荐(0)

Mysql基础——Gtid开启方法

摘要: 一、Gtid简介 GTID transactions are identified by a global transaction identifier (GTID) in the form UUID:NUMBER. Every GTID transaction in a log is always 阅读全文

posted @ 2024-12-05 10:48 gkhost 阅读(289) 评论(0) 推荐(0)

Linux基础——查看目录深度max-depth=6的文件大小

摘要: du -ah /home --max-depth=6 | sort -rh | head -10 倒序查找当前目录中前四个GB大小的文件 # 输出前四行的文件名 [root@harbor ~]# for i in `du -sh ./* | egrep "M" | sort -r -n -k 1 | 阅读全文

posted @ 2024-12-05 10:43 gkhost 阅读(19) 评论(0) 推荐(0)

导航