473,799 Members | 2,924 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

filter show processlist

Sam
Is there a way to filter 'show processlist'?

like
show processlist where Host rlike "abc"

Thanks,
Sam
Jul 23 '05 #1
2 22383
In looking at the mysql doc it loooks like this isn't possible:
13.5.4.15. SHOW PROCESSLIST Syntax

SHOW [FULL] PROCESSLIST
http://dev.mysql.com/doc/mysql/en/show-processlist.html

But, a couple of ways that I achieve this is by using the command below
if you have grep and cut availble:

mysqladmin processlist | grep <host> | cut -d '|' -f1-8

Or by installing mytop which allows you to filter on host using regexp
http://jeremy.zawodny.com/mysql/mytop/

Jul 23 '05 #2
In looking at the mysql doc it loooks like this isn't possible:
13.5.4.15. SHOW PROCESSLIST Syntax

SHOW [FULL] PROCESSLIST
http://dev.mysql.com/doc/mysql/en/show-processlist.html

But, a couple of ways that I achieve this is by using the command below
if you have grep and cut availble:

mysqladmin processlist | grep <host> | cut -d '|' -f1-8

Or by installing mytop which allows you to filter on host using regexp
http://jeremy.zawodny.com/mysql/mytop/

Jul 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
4145
by: John Yasaitis | last post by:
I seem to have replication set up correctly to only replicate one database named vmail.* Except when I try to update a table in vmail.* the changes do not replicate to the slave. Authentication works fine. Binary logging (log-bin) is enabled on both. I have a feeling about one thing that might be wrong - "Binlog_do_db" on the master server is empty when it should be "vmail".
0
3169
by: Mechain Marc | last post by:
I would like to know (if possible, there is no explanation in the = documentation) the exact meanning of the column "time" in the "show = processlist" command. Why is it sometime so hight ? When is it reinitialize (and why) ? Is there any correlation between the time column and the variables "wait = timeout" and "interactive timeout" ?
4
5140
by: Nhmiller | last post by:
This is directly from Access' Help: "About designing a query When you open a query in Design view, or open a form, report, or datasheet and show the Advanced Filter/Sort window (Advanced Filter/Sort window: A window in which you can create a filter from scratch. You enter criteria expressions in the filter design grid to restrict the records in the open form or datasheet to a subset of records that meet the criteria.), you see the design...
4
1643
by: crispywafers | last post by:
Hi, Is it possible to filter ontop of the current filter being applied to records? This seems like it should be easy? I have two drop down boxes-- one to filter on a student's last name, one to filter on the current school year. They work seperatly, but not together. I would like a user, if they want, to be able to apply both filters at once -- (only a certain school year and only a certain student). Help?
2
2849
by: cefrancke | last post by:
I have a form (no underlying record set) that has two separate sub-forms on it. Each sub-form has data from two different tables. Above each sub-form there is one unbound combo box with a SQL record source that returns an ID field and a Text field. Next to each combo box is two buttons, one that 'Applys' the filter of the sub-form to the value in the combo box and one that 'Clears' the form's current filter. When the click event of the...
0
2242
by: teju | last post by:
Hi, I need to get the information about show processlist in an query so i can display in ASP .Iam successfull in getting the whole table results using and displaying but if i need to use where condition for example i only need to find the number of sleeping connection in the db.How should i do it. Please any suggestions most welcome Thanks
2
1913
by: amir | last post by:
How can I filter my database in Multiple way, I mean that I wana to filter st. like this: sm* *th* *er Please Help me on this matter Amir
5
2660
by: Ron S | last post by:
After days of searching I finally an example that would work with my application, the only problem is after entering all of the code it is not working. Would someone be kind enough to take a look at this... Exmaple web site: http://allenbrowne.com/ser-62.html My Code: 'Purpose: This module illustrates how to create a search form, _ where the user can enter as many or few criteria as they wish, _ and results...
2
6232
by: ccmanc68 | last post by:
I have on my main form two control text boxes: "ContractNo" and "Buyer", I also have a form control subform: "Contracts". Using the following code, If I enter "25" in the "Buyer" Control, this will filter the "Contracts Subform to show only the entries with buyer 25. Private Sub Buyer_AfterUpdate() Forms!!.Form.Filter = "=" & Me.Buyer Forms!!.Form.FilterOn = True End Sub Also using the following code, if I enter "11" in the...
0
9685
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9538
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10473
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10219
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10025
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7563
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6804
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5461
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3755
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.