Skip to content

Commit 5364d85

Browse files
authored
Merge pull request #112 from Coleary005/main
workflow/mysql-dump-upload-with-progress-bar
2 parents 9f5f20e + c07fb2b commit 5364d85

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Import a MySQL dump with progress bar into a MySQL server
3+
command: "pv {{mysql_dump_path}} | mysql -u {{username}} -p {{database_name}}"
4+
tags:
5+
- mysql
6+
description: Import a mysqldump file into a MySQL server with a progress bar indicating time remaining
7+
arguments:
8+
- name: username
9+
description: The user to connect to the MySQL server as
10+
default_value: ~
11+
- name: database_name
12+
description: The name of the database to import the dump into
13+
default_value: ~
14+
- name: mysql_dump_path
15+
description: The filepath to the .sql dump file
16+
default_value: ~
17+
source_url: "https://dba.stackexchange.com/questions/17367/how-can-i-monitor-the-progress-of-an-import-of-a-large-sql-file"
18+
author: Rob
19+
author_url: "https://dba.stackexchange.com/users/15321/rob"
20+
shells: []

0 commit comments

Comments
 (0)