I am trying to import a mysqldump file into my mysql database, but my (putty) connection to the server keeps timing out halfway through.
I tried to use
nohup . . . . & but this doesn't appear to work.
My Command is
nohup sudo mysql -hlocalhost -P3306 -uxxxxxx -pxxxxxx < /var/lib/mysql/backups/dump.sql &
Which I believe should run it in the background, and persist after my connection to the server dies.
However, when I then type
jobs to see if it is running, it says:
 Stopped nohup sudo mysql -hlocalhost -P3306 -uxxxxx -pxxxxx < /var/lib/mysql/backups/dump.sql
Am I doing something wrong, or have I completely misunderstood the purpose of
nohup . . . . &