show status where `variable_name` = 'Threads_connected';
show processlist
==================================
-- SET GLOBAL interactive_timeout = 1000; -- 28800 -- carefull
-- SET GLOBAL wait_timeout = 1000; -- 28800 -- carefull
SHOW STATUS WHERE `variable_name` = 'Threads_connected';
SHOW VARIABLES LIKE "max_connections"
====================================
SHOW SESSION STATUS;
show full processlist
show status where `variable_name` = 'Threads_connected';
-- kill 32042; -- carefull
-- pt-kill -- carefull
SHOW GLOBAL STATUS;
SHOW VARIABLES LIKE "%wait%"
select concat('KILL ',id,';') from information_schema.processlist where Command='Sleep';
-- set global max_connections = 567; -- carefull
Below is to enable the Logs and set it off back
====================================
-- SET GLOBAL general_log = 'ON';
-- SHOW VARIABLES LIKE "general_log%";
-- SET GLOBAL general_log = 'OFF';
Subscribe to:
Post Comments (Atom)
Postgress - Read a XML file from a postgress table XML column
SELECT xmltable.* FROM xmldata, XMLTABLE('//ROWS/ROW' PASSING data COLUMNS id int PATH ...
-
if more than 65535 files in your temp folder, this error can occurs, To resolve this, remove all temporary files in C:/Windows/Temp ....
-
select upper(substr(CTY_CITY,1,1))|| substr(CTY_CITY,2,length(CTY_CITY)-1) as Ax from AGM_M_COUNTRY_CITY; update AGM_M_COUNTRY_CITY set ...
-
Common text box validation function for all the text boxes within the same form. Using Sender parameter to handle. private void tex...
No comments:
Post a Comment