- 简介
- 目录大纲
- 最新文档
binlog
binlog 文件路径(通常在 /var/lib/mysql/ 下) SHOW BINARY LOGS; 按时间段导出 mysqlbinlog --read-from-remote-server --host= --port=3396 --user=admin --password= --start-datetime="2025-11-03 00:55:00" --st……
admin - 2025年11月3日 15:53
mysql 死锁查询
1、确认表是否在被使用 show open tables where in_use > 0 ; 2、查看当前数据库进程中正在执行的 SQL 线程信息 ``` 查看 wait 事务 show processlist; ``` 3、当前运行的所有事务 SELECT * FROM information_schema.INNODB_TRX; 4 删除事务 KILL Id
admin - 2025年1月13日 13:10
mysql 基准测试Sysbench
Sysbench ``` sudo apt-get update sudo apt-get install sysbench ``` 准备数据 ``` sysbench /usr/share/sysbench/oltp_read_write.lua \ --mysql-host=127.0.0.1 \ --mysql-port=3306 \ --mysql-user=root \ ……
admin - 2024年8月22日 15:28