Kill thread on MySQL instance

閲覧: 1,684 回
最初の未読メッセージにスキップ

Jacob See

未読、
2018/01/08 20:56:052018/01/08
To: Google Cloud SQL discuss
I have some developers working on a Cloud SQL MySQL instance - and one of them ran a query which seems to have gotten stuck. Do I have a way to kill that without rebooting the instance?

Taher (Cloud Platform Support)

未読、
2018/01/08 23:34:162018/01/08
To: google-cloud...@googlegroups.com
Hello Jacob, 

You can try the below command which might help you resolve the issue.

mysql> show processlist;
mysql
> kill "number from first col";

Shua Talansky

未読、
2018/02/01 14:43:402018/02/01
To: Google Cloud SQL discuss
Whenever I try to do this I get "10952 - You are not owner of thread X" Is there a way to get around this?  

Skyler Slade

未読、
2018/02/02 10:10:572018/02/02
To: Google Cloud SQL discuss
Since you don't get SUPER with Cloud SQL, the only way that you can kill a query is to login as the user who owns it and kill it.

We keep an (encrypted) plaintext copy of all of our user and application passwords so that we can kill a runaway query if we ever need to.

Shua Talansky

未読、
2018/02/02 15:52:572018/02/02
To: Google Cloud SQL discuss
Is there any RDS equivalent to the RDS method CALL mysql.rds_kill(thread-ID)
Also, can I just adjust the mysql.users table and make myself a super user?
全員に返信
投稿者に返信
転送
新着メール 0 件