查询mysql的日志 -- 查找错误日志文件路径 mysql> show variables like "log_error"; -- 查找通用日志文件路径 mysql> show variables like "general_log_file"; -- 查找慢查询日志文件路径 mysql> show variables like "slow_query_log_file"; 查找mysql的连接数:show status 查…
10. 查询Score表中的最高分的学生学号和课程号.(子查询或者排序) select sno,cno from score where degree=(select max(degree) from score) select * from score order by degree desc limit 0,1 12.查询Score表中至少有5名学生选修的并以3开头的课程的平均分数. select avg(degree) from score where cno like'3%' and c…
Mysql常见的几个错误问题及解决方法: 1.问题: mysql DNS反解:skip-name-resolve 错误日志有类似警告: 点击(此处)折叠或打开 120119 16:26:04 [Warning] IP address '192.168.1.10' could not be resolved: Name or service not known 120119 16:26:04 [Warning] IP address '192.168.1.14' could not be reso…