1.查找错误日志文件路径 mysql> show variables like "log_error";
2.查找通用日志文件路径 mysql> show variables like "general_log_file";
3.查找慢查询日志文件路径 mysql> show variables like "slow_query_log_file";
1.查找当前的连接数:show status 查看所有状态参数,其中Threads_connected 当前的连接数。 mysql> show status like "%connect%";
2.显示当前正在执行的mysql连接。如果是root帐号,能看到所有用户的当前连接。如果是其它普通帐号,只能看到自己占用的连接。 mysql> show processlist;
原文:https://www.cnblogs.com/liuhaidon/p/11495821.html