Web Hosting Talk







View Full Version : Mysql Question


stephenn
12-19-2002, 11:10 AM
Hi,

From the command prompt can we find how many connectionts to the database and how many quaries to this database.

How could I check it?


thanks
Stephenn

lotuslnd
12-19-2002, 11:22 AM
mysqladmin processlist

mccuem
12-19-2002, 11:26 AM
The MySQL docs (http://www.mysql.com/doc/en/mysqladmin.html) tell you how to do this with mysqladmin from the command line.

#> mysqladmin proc stat

will give you this information... check the docs for how to interpret it.

imo
12-19-2002, 11:28 AM
mysqladmin -h

'mysqladmin status' might be helpful?

stephenn
02-27-2003, 11:12 AM
Hi,

How do we find the exact userid for the mysql process?

Thanks

sprintserve
02-27-2003, 12:39 PM
Are you using Cpanel ? If you are, running mysqladmin processlist will show you the database connected. And in Cpanel, the prefix is actually the userid.