mysql慢日志问题
hi,
在配置文件中配置了慢日志,但是到目标文件夹下查看却没有,请问哪里出问题了
1.配置文件
log-slow-queries="D:/mysql/slowlog"
long_query_time=0.01
log-queries-not-using-indexes
2.查询结果
| 5 | 10 | 2009-09-22 15:29:25 |
| 8 | 3 | 2009-09-21 14:30:06 |
| 10 | 2232 | 2009-09-22 14:27:21 |
| 11 | 2123 | 2009-09-22 14:27:25 |
| 12 | 34 | 2009-09-22 14:27:32 |
+------+------+---------------------+
19290 rows in set (0.08 sec)
SET global log_output=file
你的 long_query_time 设置应该是不对的。
检查一下你的以下信息。
SQL code:
mysql> show variables like 'long_query_time';
+-----------------+-----------+
| Variable_name | Value |
+-----------------+-----------+
| long_query_time | 10.000000 |
+-----------------+-----------+
1 row in set (0.06 sec)
mysql> show variables like '%slow%';
+---------------------+-------+
| Variable_name | Value |
+---------------------+-------+
| log_slow_queries | ON |
| slow_launch_time | 2 |
| slow_query_log | ON |
| slow_query_log_file | |
+---------------------+-------+
4 rows in set (0.00 sec)
mysql> show va
相关问答:
我之前导入的数据库,现在删除不了,用了命令行和工具都不行,重启也不行,这是为什么呢?
你是如何删除的?
有什么提示?
问题说明越详细,回答也会越准确!参见如何提问。(提问的智慧)
......
我在注册页面写入了如下代码:
<?php
$conn=mysql_connect("localhost","root","614510")or die("数据库服务器连接错误".mysql_error());
& ......
偶的网站这么说```
The page cannot be displayed
There are too many people accessing the Web site at this time.
可实际上最多只有3~4个人在同时登录阿
请问如何解决阿?因为偶安装mysql的时候似 ......
刚刚使用mysql,误删了test数据库,还没来得及备份;
怎样可以恢复?
用数据恢复文件试试
如果有二进制日制的话可以参考这个贴子的操作恢复你的数据。
http://topic.csdn.net/u/20090608/20/e50feb34 ......