MySQL: Running a SQL script from the command line:

MySQL: Stopping a long query:

Get the id from the first column then run: