![]() |
1
1
如果你是说 Ruby/MySQL ,它提供一个debug()函数,该函数与 mysql_debug() --如果您的客户机库是通过调试编译的,那么您可以 DBUG to trace things 为你。这可能会给你想要的东西(稍微清理一下)。 另一种方法是 capture the MySQL packets using tcpdump and decode them with maatkit . 第三种方法是 alias Mysql.query and Mysql.real_query with your own functions 那就是伐木。像这样的东西( 未经测试的 !微不足道的例子!不处理块!):
|
![]() |
2
0
Rails使用类似ActiveRecord的窗体,该窗体具有与之关联的记录器。 我认为mysql gem没有日志记录程序… |
![]() |
hello_programmers · Mysql从其他表输出一列 2 年前 |
![]() |
Community wiki · 这个MySQL语句出了什么问题? 2 年前 |
![]() |
Community wiki · 优化从同一表中提取的多列的查询 2 年前 |
![]() |
Popo · Sql查询:返回数据库中不可用的where条件 2 年前 |
|
Hamdan Nuramdani · 对账单中一周内不同表中的数据求和 2 年前 |
|
Kugelfisch · 用php为数据库加密数据 2 年前 |