I need to import a very large MySQL table on remote server. Usually I'm using
mysql -u mysql_user -pMypass db_name < sql_data.sql
But it takes about 5 hours to complete the task. I tried using nohup but the logout process is killing the import. I found that I could use screen, but without any luck.
screen -dmS import_table mysql -u mysql_user -pMypass db_name < sql_data.sql
Please suggest what else I can try. Thanks.