Search
 
SCRIPT & CODE EXAMPLE
 

SQL

kill mysql processlist in whose time more than 200

mysql> select group_concat(concat('KILL ',id,';')) from 
information_schema.processlist where user='root' and time > 500;

mysql> source /tmp/a.txt;
Comment

PREVIOUS NEXT
Code Example
Sql :: uninstall mysql on ubuntu 
Sql :: oracle find unusable indexes 
Sql :: pl sql output 
Sql :: view column data type sql 
Sql :: mysql 3 months ago 
Sql :: get tables in database sql 
Sql :: mysql show databases 
Sql :: mysql get column names from table 
Sql :: sql server get users 
Sql :: postgresql calculate age from birthdate 
Sql :: tsql copy table 
Sql :: mysql date minus 1 day 
Sql :: mysql update field from one table to another 
Sql :: mysql add column if not exists 
Sql :: how to drop databaselink in oracle 
Sql :: how to duplicate table in mysql 
Sql :: import sql mysql ubuntu 
Sql :: delete first row in sql 
Sql :: sql database size 
Sql :: oracle first day of last year 
Sql :: best configuration for display table in sqlplus 
Sql :: athena drop partition 
Sql :: how to create index mysql 
Sql :: add column in mysq 
Sql :: drop db syntax 
Sql :: mysql dump mysql db cli 
Sql :: t-sql find object by name 
Sql :: delete triger pl pg sql 
Sql :: vagrant mysql downgrade version 
Sql :: sql select roundup column 
ADD CONTENT
Topic
Content
Source link
Name
4+6 =