We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7d7dfd commit f85ccc3Copy full SHA for f85ccc3
mysql.py
@@ -86,6 +86,10 @@ def replicate_slave_from_master(master):
86
run_mysql_command("STOP SLAVE")
87
run_mysql_command("SET GLOBAL slow_query_log=OFF")
88
89
+ with hide('running', 'stdout'):
90
+ database_file_size = run("stat --format='%s' dump.sql")
91
+
92
+ print('Importing MySQL database which is {0}GB, this might take a while...'.format(round(int(database_file_size) / (1024*1024*1024*1.0), 1)))
93
run('sudo -i mysql -uroot < dump.sql')
94
95
run_mysql_command("START SLAVE")
0 commit comments