随笔分类 -  Mysql

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 阅读(13) 评论(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 阅读(132) 评论(0) 推荐(0) 编辑

Mysql基础——存储过程创建表数据
摘要:delimiter $$ CREATE PROCEDURE i_employees_ptarc (IN row_num INT) BEGIN DECLARE i INT DEFAULT 0 ; WHILE i < row_num DO INSERT INTO employees_ptarc (v_i 阅读全文

posted @ 2024-05-08 19:46 gkhost 阅读(25) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

导航

统计

点击右上角即可分享
微信分享提示