【问题标题】:Show processlist use question marks instead of binded values显示进程列表使用问号而不是绑定值
【发布时间】:2015-11-04 15:40:31
【问题描述】:

然后我在 MySQL 中运行“显示完整进程列表”,我看到一些查询看起来像

| 413575 | sitecom | localhost | sitecom | Prepare | 0 | After opening tables | select * from content where content.id = ? | 0.000 |

| 413597 | sitecom | localhost | sitecom | Prepare | 0 | init | select * from content where content.id = ? | 0.000 |

网站使用 Laravel Eloquent ORM。它通过带有准备好的语句的 PDO 工作。我看到问号而不是绑定参数可以吗?

【问题讨论】:

    标签: laravel orm eloquent prepared-statement


    【解决方案1】:

    答案有点晚,但如果有人偶然发现:MySQL 中的进程列表显示问号是正常的。查询带有绑定的值,您只是看不到它。

    【讨论】:

      【解决方案2】:

      我们遇到了同样的问题,但是在激活 slow_query_log 后,processlist 再次显示所有参数

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2015-05-29
        • 1970-01-01
        • 2019-07-12
        相关资源
        最近更新 更多