1.查看当前所有连接的详细资料: mysqladmin -u root -ppassword processlist 这里password为数据库用户root的密码
2.只查看当前连接数(Threads就是连接数.
【mysql】 【数据库】 【配置】 【variables】 【cto】 【Blog】 点击查看原文>
~/.mysql_history文件中记录每个用户使用数据库的操作命令
root用户的mysql操作,~/.mysql_history
transfor用户的mysql操作,/home/transfor/.
【mysql】 【配置】 【variables】 点击查看原文>