Sample Header Ad - 728x90

Will a mysql db import be interrupted if my ssh session times out?

7 votes
2 answers
3582 views
I have a large-ish (several GB) mysql DB that I'm planning to import via mysql -u root -p mydb < mydb.sql in a SSH session. What would happen if my SSH connection drops? Is it safer to run something like nohup mysql -u root -p mydb < mydb.sql Or does mysql not care? Using the following - MySQL 5.1.45 - CentOS 5.x
Asked by Mike B (617 rep)
Jun 6, 2016, 09:59 PM
Last activity: Mar 30, 2020, 10:35 AM