I have enabled my slow query log. So I saw the query which was taking some time then I did some indexing it improve and my slow query log is not being showing any more queies. But when I run this command
mysqladmin -u root -p status
Enter password:
Uptime: 9395 Threads: 2 Questions: 474976 Slow queries: 13 Opens: 99 Flush tables: 1 Open tables: 54 Queries per second avg: 50.556
It is showing me slow queries:13. What does the thread n questions means here?
Here is how I set my.cnf
file.
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
log-slow-queries = /var/log/mysql/mysql-slow.log
long_query_time = 2
log_warnings = 2
# Default to using old password format for compatibility with mysql 3.x
# clients (those using the mysqlclient10 compatibility package).
old_passwords=1
# Disabling symbolic-links is recommended to prevent assorted security risks;
# to do so, uncomment this line:
# symbolic-links=0
[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
It is since the last restart of the mysql service. If it is not growing then you are good