Why don’t you concentrate on fixing the server issue (by configuring the server for instance)? How can you expect a client to work when the server does not?
To stop a query, SQLyog will need to create a new connection to the server and execute mysql_kill() with the thread_id of the first connection as argument.