Take the 2-minute tour ×
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.

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
add comment

2 Answers

up vote 4 down vote accepted

Perhaps you are seeing diff since last snapshot

share|improve this answer
add comment

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
add comment

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.