mysqladmin -u root -p -i 1 processlist -u your username -p you be pleased to give database password -i 1 interval which equals 1 second
Example output :
+----+------+-----------+----+---------+------+-------+------------------+ | Id | User | Host | db | Command | Time | State | Info | +----+------+-----------+----+---------+------+-------+------------------+ | 43 | root | localhost | | Query | 0 | | show processlist | +----+------+-----------+----+---------+------+-------+------------------+
Reference : [1] Mysqladmin Tool Doc
No comments:
Post a Comment