{"id":4135,"date":"2018-12-19T00:24:29","date_gmt":"2018-12-19T00:24:29","guid":{"rendered":"https:\/\/alexrusin.com\/?p=4135"},"modified":"2018-12-19T00:24:29","modified_gmt":"2018-12-19T00:24:29","slug":"db-resource-usage","status":"publish","type":"post","link":"https:\/\/blog.alexrusin.com\/db-resource-usage\/","title":{"rendered":"DB Resource Usage"},"content":{"rendered":"
You can use the following query to see who is using your database resources<\/p>\n
SELECT max(user) as user, count(*) as connections_count, db from information_schema.processlist GROUP BY db order by connections_count desc;<\/pre>\n","protected":false},"excerpt":{"rendered":"You can use the following query to see who is using your database resources SELECT max(user) as user, count(*) as connections_count, db from information_schema.processlist GROUP BY db order by connections_count desc;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"footnotes":""},"categories":[10],"tags":[],"class_list":["post-4135","post","type-post","status-publish","format-standard","hentry","category-php-mysql-development"],"yoast_head":"\n
DB Resource Usage | Alex Rusin Blog<\/title>\n\n\n\n\n\n\n\n\n\n\n\n\n\t\n