【文件属性】:
文件名称:mysql-insert-progress:跟踪大型 MySQL 插入进度
文件大小:2KB
文件格式:ZIP
更新时间:2021-06-29 17:10:18
Shell
监控大型 MySQL 插入/导入的进度
介绍
如果您曾经导入过大型 mysql 表,您就会知道等待是多么令人沮丧。
这个小型 bash 脚本允许您跟踪大型 mysql 插入/导入的进度(以 % 为单位)。
用法
./track-progress.sh [SQL-FILE]
您可以在 mysql 导入期间的任何时候运行此脚本。
例子
$ mysql < large.sql &
[2] 12345
$ ./track-progress.sh large.sql
Line 144 out of 1467 (9.81%)
Line 151 out of 1467 (10.29%)
Line 154 out of 1467 (10.49%)
Line 161 out of 1467 (10.97%)
Line 167 out of 1467 (11.38%)
配置
更改 MYSQL 参数以添加
【文件预览】:
mysql-insert-progress-master
----LICENSE(1KB)
----README.md(707B)
----track-progress.sh(1KB)