Skip to content

Commit 1e55385

Browse files
committed
mysql oom
1 parent b6453c9 commit 1e55385

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

_posts/2016-12-16-python-mysql-out-of-memory-killed.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,9 @@ for row in cursor:
7676

7777
读文档光是仔细是不行了,要用心,[官方文档]明确的写了,
7878

79-
> You MUST retrieve the entire result set and close() the cursor before additional queries can be peformed on the connection.
79+
{% highlight bash %}
80+
You MUST retrieve the entire result set and close() the cursor before additional queries can be peformed on the connection.
81+
{% endhighlight %}
8082

8183
原来是这个connection被神器占用了,那么好,单独再开一个connection,
8284
于是代码变成了最终版如下:

0 commit comments

Comments
 (0)