Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I was running the following: mysqladmin -u root -p ext -ri 10 | grep Threads_connected and was kind of surprised to find that Threads_connected could be -1:

| Threads_connected                 | 1            |
| Threads_connected                 | -1           |
| Threads_connected                 | 1            |
| Threads_connected                 | -1           |

What does the -1 signify?

This is on MySQL 5.0.77 on x86_64.

Thanks!

share|improve this question
up vote 4 down vote accepted

Perhaps you are seeing diff since last snapshot

share|improve this answer

Because you have -r for relative specified in mysqladmin, the -1 indicates that someone disconnected since the last sample. If you want to see the absolute values, remove -r.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.